Move call to PrivateCsrssManualGuiCheck to before the creation of

window classes

svn path=/trunk/; revision=8019
This commit is contained in:
Gé van Geldorp 2004-02-04 00:05:46 +00:00
parent 8c6973cde5
commit bec973c423

View file

@ -1,4 +1,4 @@
/* $Id: guiconsole.c,v 1.9 2004/02/03 17:53:54 navaraf Exp $ /* $Id: guiconsole.c,v 1.10 2004/02/04 00:05:46 gvg Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
@ -571,8 +571,6 @@ GuiConsoleGuiThread(PVOID Data)
MSG msg; MSG msg;
PHANDLE GraphicsStartupEvent = (PHANDLE) Data; PHANDLE GraphicsStartupEvent = (PHANDLE) Data;
PrivateCsrssManualGuiCheck(+1);
NotifyWnd = CreateWindowW(L"Win32CsrCreateNotify", NotifyWnd = CreateWindowW(L"Win32CsrCreateNotify",
L"", L"",
WS_OVERLAPPEDWINDOW, WS_OVERLAPPEDWINDOW,
@ -630,6 +628,11 @@ GuiInit(VOID)
return FALSE; return FALSE;
} }
if (NULL == NotifyWnd)
{
PrivateCsrssManualGuiCheck(+1);
}
wc.cbSize = sizeof(WNDCLASSEXW); wc.cbSize = sizeof(WNDCLASSEXW);
wc.lpszClassName = L"Win32CsrCreateNotify"; wc.lpszClassName = L"Win32CsrCreateNotify";
wc.lpfnWndProc = GuiConsoleNotifyWndProc; wc.lpfnWndProc = GuiConsoleNotifyWndProc;