From 81711c755857f312405e17a53d8d34cf20a1e2e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Mon, 23 Feb 2015 20:01:36 +0100 Subject: [PATCH] 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 85209860b60..48409ffc216 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);