[SHELL32_APITEST] DragDrop: Add NULL check of pDropTarget

This commit is contained in:
Katayama Hirofumi MZ 2019-11-24 22:48:06 +09:00
parent 0ac96ca431
commit 14478887df

View file

@ -272,6 +272,19 @@ static void DoTestEntry(const TEST_ENTRY *pEntry)
CoTaskMemFree(pidl);
ok_long(hr, S_OK);
if (!pDropTarget)
{
skip("pDropTarget was NULL\n");
// clean up
DeleteFileW(s_szSrcTestFile);
DeleteFileW(s_szDestTestFile);
DoDeleteSpecW(s_szDestLinkSpec);
ILFree(pidlDesktop);
return;
}
// DragEnter
POINTL ptl = { 0, 0 };
DWORD dwKeyState = pEntry->dwKeyState;