Author: jimtabor
Date: Mon Jul 23 05:36:26 2012
New Revision: 56946
URL:
http://svn.reactos.org/svn/reactos?rev=56946&view=rev
Log:
[User32]
- Do not send on a null window, fixes start up and shut down spurious window handle
errors.
Modified:
trunk/reactos/win32ss/user/user32/windows/dialog.c
Modified: trunk/reactos/win32ss/user/user32/windows/dialog.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/dialog.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/dialog.c [iso-8859-1] Mon Jul 23 05:36:26
2012
@@ -571,7 +571,7 @@
if (!(GetWindowLongPtrW( hwnd, GWL_STYLE ) & DS_NOIDLEMSG))
{
/* No message present -> send ENTERIDLE and wait */
- SendMessageW( ownerMsg, WM_ENTERIDLE, MSGF_DIALOGBOX, (LPARAM)hwnd
);
+ if (ownerMsg) SendMessageW( ownerMsg, WM_ENTERIDLE, MSGF_DIALOGBOX,
(LPARAM)hwnd );
}
GetMessageW( &msg, 0, 0, 0 );
}