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
This commit is contained in:
Vadim Zeitlin 2008-12-04 00:17:36 +00:00
parent 20f4a2e41f
commit fe8f9ad70c

View File

@ -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
}