Check the return value of the SHGetDesktopFolder call.

This commit is contained in:
Sami Aario 2004-10-25 21:45:36 +00:00 committed by Alexandre Julliard
parent e0f1444d4e
commit c2dcecc362
1 changed files with 3 additions and 1 deletions

View File

@ -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)))
{