Module: wine Branch: master Commit: 81711c755857f312405e17a53d8d34cf20a1e2e9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=81711c755857f312405e17a53d...
Author: André Hentschel nerv@dawncrow.de Date: Mon Feb 23 20:01:36 2015 +0100
shell32: Don't call Drop without valid target.
---
dlls/shell32/shlview.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c index 8520986..48409ff 100644 --- a/dlls/shell32/shlview.c +++ b/dlls/shell32/shlview.c @@ -2491,6 +2491,8 @@ static HRESULT WINAPI ISVDropTarget_Drop(IDropTarget *iface, IDataObject* pDataO { IShellViewImpl *This = impl_from_IDropTarget(iface);
+ if (!This->pCurDropTarget) return DRAGDROP_E_INVALIDHWND; + IDropTarget_Drop(This->pCurDropTarget, pDataObject, grfKeyState, pt, pdwEffect);
IDropTarget_Release(This->pCurDropTarget);