Commit 53cad8b7 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Unblock the dialog message loop with a WM_NULL message.

parent 817b134e
...@@ -1051,7 +1051,7 @@ static INT DIALOG_DoDialogBox( HWND hwnd, HWND owner ) ...@@ -1051,7 +1051,7 @@ static INT DIALOG_DoDialogBox( HWND hwnd, HWND owner )
while (MSG_InternalGetMessage(QMSG_WIN32A, &msg, hwnd, ownerMsg, MSGF_DIALOGBOX, while (MSG_InternalGetMessage(QMSG_WIN32A, &msg, hwnd, ownerMsg, MSGF_DIALOGBOX,
PM_REMOVE, !(wndPtr->dwStyle & DS_NOIDLEMSG), NULL )) PM_REMOVE, !(wndPtr->dwStyle & DS_NOIDLEMSG), NULL ))
{ {
if (!IsDialogMessageA( hwnd, &msg)) if (!(dlgInfo->flags & DF_END) && (!IsDialogMessageA( hwnd, &msg)))
{ {
TranslateMessage( &msg ); TranslateMessage( &msg );
DispatchMessageA( &msg ); DispatchMessageA( &msg );
...@@ -1257,7 +1257,8 @@ BOOL WINAPI EndDialog( HWND hwnd, INT retval ) ...@@ -1257,7 +1257,8 @@ BOOL WINAPI EndDialog( HWND hwnd, INT retval )
| SWP_NOZORDER | SWP_NOACTIVATE | SWP_HIDEWINDOW); | SWP_NOZORDER | SWP_NOACTIVATE | SWP_HIDEWINDOW);
WIN_ReleaseWndPtr(wndPtr); WIN_ReleaseWndPtr(wndPtr);
/* unblock dialog loop */
PostMessageA(hwnd, WM_NULL, 0, 0);
return TRUE; return TRUE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment