mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 19:26:16 +00:00
[User32]
- 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:
@@ -571,7 +571,7 @@ INT DIALOG_DoDialogBox( HWND hwnd, HWND owner )
|
||||
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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user