Load system DLLs into WineLib applications.
This commit is contained in:
parent
1d4af587fc
commit
b8fa2962e5
|
@ -288,7 +288,7 @@ HINSTANCE MAIN_WinelibInit( int *argc, char *argv[] )
|
||||||
if (!MAIN_MainInit()) return 0;
|
if (!MAIN_MainInit()) return 0;
|
||||||
|
|
||||||
/* Initialize KERNEL */
|
/* Initialize KERNEL */
|
||||||
if (!MAIN_KernelInit(0, 0, NULL)) return 0;
|
if (!LoadLibraryA( "KERNEL32" )) return 0;
|
||||||
|
|
||||||
/* Create and switch to initial task */
|
/* Create and switch to initial task */
|
||||||
if (!(wm = ELF_CreateDummyModule( argv[0], argv[0] )))
|
if (!(wm = ELF_CreateDummyModule( argv[0], argv[0] )))
|
||||||
|
@ -305,8 +305,8 @@ HINSTANCE MAIN_WinelibInit( int *argc, char *argv[] )
|
||||||
TASK_StartTask( PROCESS_Current()->task );
|
TASK_StartTask( PROCESS_Current()->task );
|
||||||
|
|
||||||
/* Initialize GDI and USER */
|
/* Initialize GDI and USER */
|
||||||
if (!MAIN_GdiInit(0, 0, NULL)) return 0;
|
if (!LoadLibraryA( "GDI32.DLL" )) return 0;
|
||||||
if (!MAIN_UserInit(0, 0, NULL)) return 0;
|
if (!LoadLibraryA( "USER32.DLL" )) return 0;
|
||||||
|
|
||||||
return wm->module;
|
return wm->module;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue