Author: amunger
Date: Thu Jun 1 00:41:11 2006
New Revision: 22133
URL:
http://svn.reactos.ru/svn/reactos?rev=22133&view=rev
Log:
Merge 22077: Hack to fix blank installers.
Modified:
branches/ros-branch-0_3_0/reactos/dll/win32/user32/windows/class.c
Modified: branches/ros-branch-0_3_0/reactos/dll/win32/user32/windows/class.c
URL:
http://svn.reactos.ru/svn/reactos/branches/ros-branch-0_3_0/reactos/dll/win…
==============================================================================
--- branches/ros-branch-0_3_0/reactos/dll/win32/user32/windows/class.c (original)
+++ branches/ros-branch-0_3_0/reactos/dll/win32/user32/windows/class.c Thu Jun 1 00:41:11
2006
@@ -11,6 +11,7 @@
#include <user32.h>
+extern BOOL ControlsInitialized;
/*
* @implemented
@@ -45,6 +46,12 @@
}
}
+ /* Register built-in controls if not already done */
+ if (! ControlsInitialized)
+ {
+ ControlsInitialized = ControlsInit(ClassName.Buffer);
+ }
+
Ret = NtUserGetClassInfo(hinst,
&ClassName,
(LPWNDCLASSEXW)lpwcx,
@@ -85,6 +92,12 @@
{
RtlInitUnicodeString(&ClassName,
lpszClass);
+ }
+
+ /* Register built-in controls if not already done */
+ if (! ControlsInitialized)
+ {
+ ControlsInitialized = ControlsInit(ClassName.Buffer);
}
return NtUserGetClassInfo(hinst,