From 869f31838ebba483ed21e74e657a49d793cb4896 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Fri, 8 Jun 2007 11:58:04 +0000 Subject: [PATCH] - check if window was created successfully... svn path=/trunk/; revision=27069 --- reactos/dll/win32/user32/windows/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/user32/windows/window.c b/reactos/dll/win32/user32/windows/window.c index 7a969bb5aea..8fde58a8399 100644 --- a/reactos/dll/win32/user32/windows/window.c +++ b/reactos/dll/win32/user32/windows/window.c @@ -317,7 +317,7 @@ User32CreateWindowEx(DWORD dwExStyle, 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 |