mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
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
Block a user