Author: janderwald Date: Fri Jun 8 15:58:04 2007 New Revision: 27069
URL: http://svn.reactos.org/svn/reactos?rev=27069&view=rev Log: - check if window was created successfully...
Modified: trunk/reactos/dll/win32/user32/windows/window.c
Modified: trunk/reactos/dll/win32/user32/windows/window.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/wi... ============================================================================== --- trunk/reactos/dll/win32/user32/windows/window.c (original) +++ trunk/reactos/dll/win32/user32/windows/window.c Fri Jun 8 15:58:04 2007 @@ -317,7 +317,7 @@ DbgPrint("[window] NtUserCreateWindowEx() == %d\n", Handle); #endif
- if ((dwStyle & WS_VISIBLE) && (dwExStyle & WS_EX_MDICHILD)) + if ((dwStyle & WS_VISIBLE) && (dwExStyle & WS_EX_MDICHILD) && Handle != (HWND)0) { SendMessageW(hWndParent, WM_MDIREFRESHMENU, 0, 0); SetWindowPos(Handle, HWND_TOP, 0, 0, 0, 0, SWP_SHOWWINDOW |