Module: wine Branch: master Commit: a8c4edc8dc3a92d63b034ef7699927928f695e51 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a8c4edc8dc3a92d63b034ef769...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Jun 8 12:46:28 2010 +0200
krnl386: Load gdi.exe and user.exe also when initializing universal thunks.
---
dlls/krnl386.exe16/utthunk.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/krnl386.exe16/utthunk.c b/dlls/krnl386.exe16/utthunk.c index a1889fa..a21342e 100644 --- a/dlls/krnl386.exe16/utthunk.c +++ b/dlls/krnl386.exe16/utthunk.c @@ -241,6 +241,14 @@ BOOL WINAPI UTRegister( HMODULE hModule, LPSTR lpsz16BITDLL, UTINFO *ut; HMODULE16 hModule16; FARPROC16 target16, init16; + static int done; + + if (!done) + { + LoadLibrary16( "gdi.exe" ); + LoadLibrary16( "user.exe" ); + done = TRUE; + }
/* Load 16-bit DLL and get UTProc16 entry point */