From 23c9176d875f74e9eb116fa759f4e17a04e5b8f7 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Mon, 23 Jul 2012 05:36:26 +0000 Subject: [PATCH] [User32] - Do not send on a null window, fixes start up and shut down spurious window handle errors. svn path=/trunk/; revision=56946 --- reactos/win32ss/user/user32/windows/dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/win32ss/user/user32/windows/dialog.c b/reactos/win32ss/user/user32/windows/dialog.c index 0c879c69c75..04abdbe7313 100644 --- a/reactos/win32ss/user/user32/windows/dialog.c +++ b/reactos/win32ss/user/user32/windows/dialog.c @@ -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 ); }