Author: greatlrd
Date: Sat May 27 18:15:04 2006
New Revision: 22077
URL: 
http://svn.reactos.ru/svn/reactos?rev=22077&view=rev
Log:
 patch from w3seek : <w3seek> btw here's a (temporary) fix for the missing
buttons bug: because it's not entirely thread-safe. filip will take care of it (i
think)
Modified:
    trunk/reactos/dll/win32/user32/windows/class.c
Modified: trunk/reactos/dll/win32/user32/windows/class.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/user32/windows/cl…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/class.c (original)
+++ trunk/reactos/dll/win32/user32/windows/class.c Sat May 27 18:15:04 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,