X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad9bb75ff2c6a1734c24742c5f39ed8be197e16d..2035e10e83324c6925d12725b842768f6e2b00a2:/src/msw/ole/droptgt.cpp diff --git a/src/msw/ole/droptgt.cpp b/src/msw/ole/droptgt.cpp index 329716dd27..c133b3d9b4 100644 --- a/src/msw/ole/droptgt.cpp +++ b/src/msw/ole/droptgt.cpp @@ -61,6 +61,10 @@ class wxIDropTarget : public IDropTarget { public: wxIDropTarget(wxDropTarget *p); + // suppress gcc warning +#ifdef __GNUG__ + virtual +#endif ~wxIDropTarget(); // accessors for wxDropTarget @@ -260,7 +264,7 @@ STDMETHODIMP wxIDropTarget::Drop(IDataObject *pIDataSource, // and now it has the data wxDragResult rc = ConvertDragEffectToResult(GetDropEffect(grfKeyState)); - m_pTarget->OnData(pt.x, pt.y, rc); + rc = m_pTarget->OnData(pt.x, pt.y, rc); if ( wxIsDragResultOk(rc) ) { // operation succeeded *pdwEffect = ConvertDragResultToEffect(rc);