From 49b398225569fe4270aeb7f92cffe07d8cb4c5bd Mon Sep 17 00:00:00 2001 From: Jon Griffiths Date: Tue, 30 Mar 2004 05:13:58 +0000 Subject: [PATCH] RegisterDragDrop: fail on NULL drop target. --- dlls/ole32/ole2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c index 9d26841c650..efeb81e597c 100644 --- a/dlls/ole32/ole2.c +++ b/dlls/ole32/ole2.c @@ -332,6 +332,9 @@ HRESULT WINAPI RegisterDragDrop( TRACE("(%p,%p)\n", hwnd, pDropTarget); + if (!pDropTarget) + return E_INVALIDARG; + /* * First, check if the window is already registered. */ -- 2.11.4.GIT