From dcc771fae1fb75581d366028fa7c17d9586fda93 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sat, 27 May 2006 14:15:04 +0000 Subject: [PATCH] patch from 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 --- reactos/dll/win32/user32/windows/class.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/reactos/dll/win32/user32/windows/class.c b/reactos/dll/win32/user32/windows/class.c index 0b7686e14a1..2064cc97e4e 100644 --- a/reactos/dll/win32/user32/windows/class.c +++ b/reactos/dll/win32/user32/windows/class.c @@ -11,6 +11,7 @@ #include +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,