Make CallTo16 return stub segment owned by KERNEL.

This commit is contained in:
Ulrich Weigand 1999-09-20 15:33:01 +00:00 committed by Alexandre Julliard
parent a2d5bb393a
commit 3967b0912e
2 changed files with 7 additions and 5 deletions

View File

@ -41,7 +41,8 @@ BOOL RELAY_Init(void)
codesel = GLOBAL_CreateBlock( GMEM_FIXED, (void *)Call16_Ret_Start, codesel = GLOBAL_CreateBlock( GMEM_FIXED, (void *)Call16_Ret_Start,
(int)Call16_Ret_End - (int)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; if (!codesel) return FALSE;
/* Patch the return addresses for CallTo16 routines */ /* Patch the return addresses for CallTo16 routines */

View File

@ -101,9 +101,6 @@ BOOL MAIN_MainInit(void)
/* Read DOS config.sys */ /* Read DOS config.sys */
if (!DOSCONF_ReadConfig()) return FALSE; if (!DOSCONF_ReadConfig()) return FALSE;
/* Initialize relay code */
if (!RELAY_Init()) return FALSE;
return TRUE; 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 */ NE_SetEntryPoint( hModule, 194, DOSMEM_BiosSysSeg ); /* KERNEL.194: __F000H */
#undef SET_ENTRY_POINT #undef SET_ENTRY_POINT
} }
/* Initialize relay code */
if (!RELAY_Init()) return FALSE;
return TRUE; return TRUE;
} }