- check if window was created successfully...

svn path=/trunk/; revision=27069
This commit is contained in:
Johannes Anderwald 2007-06-08 11:58:04 +00:00
parent 6a1c6e4790
commit 869f31838e

View file

@ -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 |