Module: wine Branch: refs/heads/master Commit: ba8cdfdc374829becc619acc406c738c93d07571 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=ba8cdfdc374829becc619acc...
Author: Robert Shearman rob@codeweavers.com Date: Wed Jan 18 11:29:13 2006 +0100
ole: Re-post the quit message outside of the DoDragDrop message loop.
---
dlls/ole32/ole2.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c index d16a7ce..beb485e 100644 --- a/dlls/ole32/ole2.c +++ b/dlls/ole32/ole2.c @@ -526,6 +526,8 @@ HRESULT WINAPI DoDragDrop ( */ SetCapture(hwndTrackWindow);
+ msg.message = 0; + /* * 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. */