Make CallTo16 return stub segment owned by KERNEL.
This commit is contained in:
parent
a2d5bb393a
commit
3967b0912e
|
@ -41,7 +41,8 @@ BOOL RELAY_Init(void)
|
|||
|
||||
codesel = GLOBAL_CreateBlock( GMEM_FIXED, (void *)Call16_Ret_Start,
|
||||
(int)Call16_Ret_End - (int)Call16_Ret_Start,
|
||||
0, TRUE, TRUE, FALSE, NULL );
|
||||
GetModuleHandle16( "KERNEL" ),
|
||||
TRUE, TRUE, FALSE, NULL );
|
||||
if (!codesel) return FALSE;
|
||||
|
||||
/* Patch the return addresses for CallTo16 routines */
|
||||
|
|
|
@ -101,9 +101,6 @@ BOOL MAIN_MainInit(void)
|
|||
/* Read DOS config.sys */
|
||||
if (!DOSCONF_ReadConfig()) return FALSE;
|
||||
|
||||
/* Initialize relay code */
|
||||
if (!RELAY_Init()) return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -155,6 +152,10 @@ BOOL WINAPI MAIN_KernelInit(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReser
|
|||
NE_SetEntryPoint( hModule, 194, DOSMEM_BiosSysSeg ); /* KERNEL.194: __F000H */
|
||||
#undef SET_ENTRY_POINT
|
||||
}
|
||||
|
||||
/* Initialize relay code */
|
||||
if (!RELAY_Init()) return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue