Check the return value of the SHGetDesktopFolder call.
This commit is contained in:
parent
e0f1444d4e
commit
c2dcecc362
|
@ -142,7 +142,9 @@ START_TEST(shlfolder)
|
|||
return;
|
||||
|
||||
CreateFilesFolders();
|
||||
SHGetDesktopFolder(&IDesktopFolder);
|
||||
|
||||
if(!SUCCEEDED(SHGetDesktopFolder(&IDesktopFolder)))
|
||||
return;
|
||||
|
||||
if (SUCCEEDED(IShellFolder_ParseDisplayName(IDesktopFolder, NULL, NULL, cCurrDirW, NULL, &newPIDL, 0)))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue