ole: Re-post the quit message outside of the DoDragDrop message loop.

This commit is contained in:
Robert Shearman 2006-01-18 11:29:13 +01:00 committed by Alexandre Julliard
parent 89846948e3
commit ba8cdfdc37
1 changed files with 5 additions and 0 deletions

View File

@ -526,6 +526,8 @@ HRESULT WINAPI DoDragDrop (
*/ */
SetCapture(hwndTrackWindow); SetCapture(hwndTrackWindow);
msg.message = 0;
/* /*
* Pump messages. All mouse input should go the the capture window. * Pump messages. All mouse input should go the the capture window.
*/ */
@ -564,6 +566,9 @@ HRESULT WINAPI DoDragDrop (
} }
} }
/* re-post the quit message to outer message loop */
if (msg.message == WM_QUIT)
PostQuitMessage(msg.wParam);
/* /*
* Destroy the temporary window. * Destroy the temporary window.
*/ */