Commit c2dcecc3 authored by Sami Aario's avatar Sami Aario Committed by Alexandre Julliard

Check the return value of the SHGetDesktopFolder call.

parent e0f1444d
......@@ -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)))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment