static P1616 __cdecl find_entry( void ) { P1616 retval = 0; RSI_extensions = DPMIGetVendorSpecificAPI( sig_str ); if (RSI_extensions != NULL ) { retval = RSI_extensions( 0, pkg_entry, pkg_name ); } return (retval); }
/* Returns 16:16 pointer to MONITOR array, describing state of hardware breakpoints. You shouldn't care about the return value during your init. */ int __cdecl D32NullPtrCheck( unsigned short on ) { static int old_state; int old; char buff[128]; if( _D32NullPtrCheck == NULL ) { _D32NullPtrCheck = find_entry(); if( _D32NullPtrCheck == NULL ) return( 0 ); EnvLkup( "DOS4G", buff, sizeof( buff ) ); if( strstr( strupr( buff ), "NULLP" ) ) { old_state = 1; } } old = old_state; if( old_state != on ) { RSI_extensions( 2, (void *)_D32NullPtrCheck, &on ); old_state = on; } return (old); }