mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
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:
parent
721ef792f3
commit
dcc771fae1
1 changed files with 13 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
|||
|
||||
#include <user32.h>
|
||||
|
||||
extern BOOL ControlsInitialized;
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
|
@ -45,6 +46,12 @@ GetClassInfoExA(
|
|||
}
|
||||
}
|
||||
|
||||
/* Register built-in controls if not already done */
|
||||
if (! ControlsInitialized)
|
||||
{
|
||||
ControlsInitialized = ControlsInit(ClassName.Buffer);
|
||||
}
|
||||
|
||||
Ret = NtUserGetClassInfo(hinst,
|
||||
&ClassName,
|
||||
(LPWNDCLASSEXW)lpwcx,
|
||||
|
@ -87,6 +94,12 @@ GetClassInfoExW(
|
|||
lpszClass);
|
||||
}
|
||||
|
||||
/* Register built-in controls if not already done */
|
||||
if (! ControlsInitialized)
|
||||
{
|
||||
ControlsInitialized = ControlsInit(ClassName.Buffer);
|
||||
}
|
||||
|
||||
return NtUserGetClassInfo(hinst,
|
||||
&ClassName,
|
||||
lpwcx,
|
||||
|
|
Loading…
Reference in a new issue