@param[in] Path The unknown Path Value\r
\r
@retval NULL A memory allocation failed\r
- @retval NULL a fully qualified path could not be discovered.\r
- @retval other pointer to a fuly qualified path.\r
+ @retval NULL A fully qualified path could not be discovered.\r
+ @retval other An allocated pointer to a fuly qualified path.\r
**/\r
CHAR16*\r
EFIAPI\r
\r
PathCleanUpDirectories(PathToReturn);\r
\r
+ if (PathToReturn == NULL) {\r
+ return NULL;\r
+ }\r
+\r
while (PathToReturn[StrLen(PathToReturn)-1] == L'*') {\r
PathToReturn[StrLen(PathToReturn)-1] = CHAR_NULL;\r
}\r