]> git.proxmox.com Git - mirror_edk2.git/commitdiff
specify operand order
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 19 Nov 2009 21:10:41 +0000 (21:10 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 19 Nov 2009 21:10:41 +0000 (21:10 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9451 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiShellLib/UefiShellLib.c

index f0b1e95b5fea0c4a656a736f9072bc5b4617e4a8..3aeaf4bc57cf9d626f38ba1c48a5e6f703abbc1c 100644 (file)
@@ -1494,7 +1494,7 @@ ShellFindFilePath (
 \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
@@ -1508,7 +1508,7 @@ ShellFindFilePath (
   }\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