shell32: Don't call Drop without valid target.

This commit is contained in:
André Hentschel 2015-02-23 20:01:36 +01:00 committed by Alexandre Julliard
parent 484c818f75
commit 81711c7558
1 changed files with 2 additions and 0 deletions

View File

@ -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);