[ros-diffs] [janderwald] 27069: - check if window was created successfully...
janderwald at svn.reactos.org
janderwald at svn.reactos.org
Fri Jun 8 17:12:44 CEST 2007
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/window.c?rev=27069&r1=27068&r2=27069&view=diff
==============================================================================
--- 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 |
More information about the Ros-diffs
mailing list