[STOBJECT]
[reactos.git] / base / shell / rshell / CStartMenu.cpp
index 649086b..dfefa3f 100644 (file)
@@ -412,6 +412,8 @@ CStartMenu_Constructor(REFIID riid, void **ppv)
         return hr;
 
     hr = SHGetSpecialFolderLocation(NULL, CSIDL_PROGRAMS, &pidlProgramsAbsolute);
+    if (FAILED_UNEXPECTEDLY(hr))
+        return hr;
 
     pidlPrograms = ILClone(ILFindLastID(pidlProgramsAbsolute));
     ILFree(pidlProgramsAbsolute);