} \r
TempCopy = NULL;\r
TempCopy = StrnCatGrow(&TempCopy, NULL, StringGuid, 0);\r
+ if (TempCopy == NULL) {\r
+ return (EFI_OUT_OF_RESOURCES);\r
+ }\r
Walker = TempCopy;\r
TempSpot = StrStr(Walker, L"-");\r
if (TempSpot != NULL) {\r
//\r
// See if there are any illegal characters within the name\r
//\r
- if (Ch < 0x20 || Ch == L'\"' || Ch == L'*' || Ch == L'/' || Ch == L'<' || Ch == L'>' || Ch == L'?' || Ch == L'|' || Ch == L' ') {\r
+ if (Ch < 0x20 || Ch == L'\"' || Ch == L'*' || Ch == L'/' || Ch == L'<' || Ch == L'>' || Ch == L'?' || Ch == L'|') {\r
return FALSE;\r
}\r
\r