- Do not send on a null window, fixes start up and shut down spurious window handle errors.

svn path=/trunk/; revision=56946
This commit is contained in:
James Tabor 2012-07-23 05:36:26 +00:00
parent 17836bbe19
commit 23c9176d87

View file

@ -571,7 +571,7 @@ INT DIALOG_DoDialogBox( HWND hwnd, HWND owner )
if (!(GetWindowLongPtrW( hwnd, GWL_STYLE ) & DS_NOIDLEMSG)) if (!(GetWindowLongPtrW( hwnd, GWL_STYLE ) & DS_NOIDLEMSG))
{ {
/* No message present -> send ENTERIDLE and wait */ /* 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 ); GetMessageW( &msg, 0, 0, 0 );
} }