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)

svn path=/trunk/; revision=22077
This commit is contained in:
Magnus Olsen 2006-05-27 14:15:04 +00:00
parent 721ef792f3
commit dcc771fae1

View file

@ -11,6 +11,7 @@
#include <user32.h> #include <user32.h>
extern BOOL ControlsInitialized;
/* /*
* @implemented * @implemented
@ -45,6 +46,12 @@ GetClassInfoExA(
} }
} }
/* Register built-in controls if not already done */
if (! ControlsInitialized)
{
ControlsInitialized = ControlsInit(ClassName.Buffer);
}
Ret = NtUserGetClassInfo(hinst, Ret = NtUserGetClassInfo(hinst,
&ClassName, &ClassName,
(LPWNDCLASSEXW)lpwcx, (LPWNDCLASSEXW)lpwcx,
@ -87,6 +94,12 @@ GetClassInfoExW(
lpszClass); lpszClass);
} }
/* Register built-in controls if not already done */
if (! ControlsInitialized)
{
ControlsInitialized = ControlsInit(ClassName.Buffer);
}
return NtUserGetClassInfo(hinst, return NtUserGetClassInfo(hinst,
&ClassName, &ClassName,
lpwcx, lpwcx,