Check the GetPidlFromDataObject's doSelected parameter before calling
a method on it.
This commit is contained in:
parent
e4d2ef4559
commit
37418c6d3c
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue