X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=base%2Fshell%2Frshell%2FCStartMenu.cpp;h=dfefa3fad5264ee736ac5c77f2444312f2ab58b4;hp=649086beb336c1025d54f9167faf65fdd258f408;hb=e5ac3d04ebfad65461ff202336d3b70ee383fd7b;hpb=c3479eb2b2053cf02c38599f58c8517975331b23 diff --git a/base/shell/rshell/CStartMenu.cpp b/base/shell/rshell/CStartMenu.cpp index 649086beb33..dfefa3fad52 100644 --- a/base/shell/rshell/CStartMenu.cpp +++ b/base/shell/rshell/CStartMenu.cpp @@ -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);