]> git.proxmox.com Git - mirror_edk2.git/commitdiff
fix operator order.
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 9 Jul 2009 17:36:06 +0000 (17:36 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 9 Jul 2009 17:36:06 +0000 (17:36 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8844 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.c

index d04a797bdf7a88a870c677e41e13b809679b8433..3200385ee58b0e63f23105b66ff8e0e1f0c12abb 100644 (file)
@@ -668,6 +668,7 @@ StrnCatGrowLeft (
   ){\r
   UINTN DestinationStartSize;\r
   UINTN NewSize;\r
+  UINTN CopySize;\r
 \r
   //\r
   // ASSERTs\r
@@ -714,7 +715,8 @@ StrnCatGrowLeft (
     *Destination = AllocateZeroPool((Count+1)*sizeof(CHAR16));\r
   }\r
 \r
-  *Destination = CopyMem((*Destination)+StrLen(Source), *Destination, StrSize(*Destination));\r
+  CopySize = StrSize(*Destination);\r
+  *Destination = CopyMem((*Destination)+StrLen(Source), *Destination, CopySize);\r
   *Destination = CopyMem(*Destination, Source, StrLen(Source));\r
   return (*Destination);\r
 }\r