[USER32]
authorThomas Faber <thomas.faber@reactos.org>
Fri, 20 Nov 2015 18:04:50 +0000 (18:04 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Fri, 20 Nov 2015 18:04:50 +0000 (18:04 +0000)
- Keep an extra reference to user32 around while we're not using imm32
CORE-10540

svn path=/trunk/; revision=69965

reactos/win32ss/user/user32/misc/dllmain.c

index 6546629..116a997 100644 (file)
@@ -526,7 +526,12 @@ DllMain(
 
             if (!gfServerProcess)
             {
-               //InitializeImmEntryTable();
+#if WIN32K_ISNT_BROKEN
+               InitializeImmEntryTable();
+#else
+               /* imm32 takes a refcount and prevents us from unloading */
+               LoadLibraryW(L"user32");
+#endif
                //
                // Wine is stub and throws an exception so save this for real Imm32.dll testing!!!!
                //