}\r
}\r
\r
- if (!Sfo && HeaderPrinted == FALSE) {\r
+ if (!Sfo && !HeaderPrinted) {\r
PrintNonSfoHeader(CorrectedPath);\r
}\r
PrintFileInformation(Sfo, Node, &FileCount, &FileSize, &DirCount);\r
ShellCloseFileMetaArg(&ListHead);\r
CorrectedPath[0] = CHAR_NULL;\r
CorrectedPath = StrnCatGrow(&CorrectedPath, &LongestPath, RootPath, 0);\r
+ if (CorrectedPath == NULL) {\r
+ return SHELL_OUT_OF_RESOURCES;\r
+ }\r
if (CorrectedPath[StrLen(CorrectedPath)-1] != L'\\'\r
&&CorrectedPath[StrLen(CorrectedPath)-1] != L'/') {\r
CorrectedPath = StrnCatGrow(&CorrectedPath, &LongestPath, L"\\", 0);\r
SHELL_FREE_NON_NULL(CorrectedPath);\r
ShellCloseFileMetaArg(&ListHead);\r
\r
- if (Found == NULL && FoundOne == FALSE) {\r
+ if (Found == NULL && !FoundOne) {\r
return (SHELL_NOT_FOUND);\r
}\r
\r