diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c index bd071c4f4f9..748c072e204 100644 --- a/dlls/shell32/tests/shlfolder.c +++ b/dlls/shell32/tests/shlfolder.c @@ -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))) {