Check the GetPidlFromDataObject's doSelected parameter before calling

a method on it.
This commit is contained in:
Michael Jung 2005-08-12 10:33:06 +00:00 committed by Alexandre Julliard
parent e4d2ef4559
commit 37418c6d3c

View File

@ -3208,6 +3208,9 @@ LPITEMIDLIST GetPidlFromDataObject ( IDataObject *doSelected, UINT nPidlIndex)
TRACE("sv=%p index=%u\n", doSelected, nPidlIndex);
if (!doSelected)
return NULL;
/* Set the FORMATETC structure*/
SETDefFormatEtc(formatetc, RegisterClipboardFormatA(CFSTR_SHELLIDLIST), TYMED_HGLOBAL);