git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9451
6f19259b-4bc3-4df7-8a09-
765794883524
\r
Path = ShellGetEnvironmentVariable(L"cwd");\r
if (Path != NULL) {\r
\r
Path = ShellGetEnvironmentVariable(L"cwd");\r
if (Path != NULL) {\r
- TestPath = AllocateZeroPool(StrSize(Path) + StrSize(FileName));\r
+ TestPath = AllocateZeroPool((StrSize(Path) + StrSize(FileName)));\r
StrCpy(TestPath, Path);\r
StrCat(TestPath, FileName);\r
Status = ShellOpenFileByName(TestPath, &Handle, EFI_FILE_MODE_READ, 0);\r
StrCpy(TestPath, Path);\r
StrCat(TestPath, FileName);\r
Status = ShellOpenFileByName(TestPath, &Handle, EFI_FILE_MODE_READ, 0);\r
}\r
Path = ShellGetEnvironmentVariable(L"path");\r
if (Path != NULL) {\r
}\r
Path = ShellGetEnvironmentVariable(L"path");\r
if (Path != NULL) {\r
- TestPath = AllocateZeroPool(StrSize(Path)+StrSize(FileName) );\r
+ TestPath = AllocateZeroPool((StrSize(Path)+StrSize(FileName)));\r
Walker = (CHAR16*)Path; \r
do {\r
CopyMem(TestPath, Walker, StrSize(Walker));\r
Walker = (CHAR16*)Path; \r
do {\r
CopyMem(TestPath, Walker, StrSize(Walker));\r