Author: janderwald
Date: Sun Jul 16 18:57:34 2006
New Revision: 23081
URL:
http://svn.reactos.org/svn/reactos?rev=23081&view=rev
Log:
* GetClassInfo should return NULL for hInst when hInst is UserHInstance
* fixes one bug found by user32_winetest.exe class.c
Modified:
trunk/reactos/dll/win32/user32/windows/class.c
Modified: trunk/reactos/dll/win32/user32/windows/class.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/c…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/class.c (original)
+++ trunk/reactos/dll/win32/user32/windows/class.c Sun Jul 16 18:57:34 2006
@@ -128,6 +128,11 @@
return FALSE;
}
+ if ( hInstance == User32Instance )
+ {
+ hInstance = NULL;
+ }
+
w.cbSize = sizeof(w);
retval = GetClassInfoExA(hInstance,lpClassName,&w);
if (retval)
@@ -154,6 +159,11 @@
{
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
+ }
+
+ if ( hInstance == User32Instance )
+ {
+ hInstance = NULL;
}
w.cbSize = sizeof(w);