From fe8f9ad70c4e471d351f35d96f3c469531cbbf07 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 4 Dec 2008 00:17:36 +0000 Subject: [PATCH] don't call DragFinish() before calling DragQueryPoint() or we (naturally) don't get the correct answer from the query (#10238) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 22913dd508..b147823bea 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -4088,7 +4088,6 @@ bool wxWindowMSW::HandleDropFiles(WXWPARAM wParam) ::DragQueryFile(hFilesInfo, wIndex, wxStringBuffer(files[wIndex], len), len); } - DragFinish (hFilesInfo); wxDropFilesEvent event(wxEVT_DROP_FILES, gwFilesDropped, files); event.SetEventObject(this); @@ -4098,6 +4097,8 @@ bool wxWindowMSW::HandleDropFiles(WXWPARAM wParam) event.m_pos.x = dropPoint.x; event.m_pos.y = dropPoint.y; + DragFinish(hFilesInfo); + return HandleWindowEvent(event); #endif } -- 2.45.2