[SHELL32]
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Sun, 6 Nov 2016 23:34:22 +0000 (23:34 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Sun, 6 Nov 2016 23:34:22 +0000 (23:34 +0000)
- CShellLink: Zero the pointer to mDropTarget by releasing the smart pointer instead of just releasing the object. This lead to a crash every time CShellLink::DragLeave was called.
CORE-11956

svn path=/trunk/; revision=73161

reactos/dll/win32/shell32/CShellLink.cpp

index b7afc0b..396389a 100644 (file)
@@ -2248,7 +2248,7 @@ HRESULT WINAPI CShellLink::DragLeave()
     if (mDropTarget)
     {
         hr = mDropTarget->DragLeave();
-        mDropTarget->Release();
+        mDropTarget.Release();
     }
 
     return hr;