mirror of https://github.com/acidanthera/audk.git
fix operator order.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8844 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
97482d9486
commit
727a4c7101
|
@ -668,6 +668,7 @@ StrnCatGrowLeft (
|
||||||
){
|
){
|
||||||
UINTN DestinationStartSize;
|
UINTN DestinationStartSize;
|
||||||
UINTN NewSize;
|
UINTN NewSize;
|
||||||
|
UINTN CopySize;
|
||||||
|
|
||||||
//
|
//
|
||||||
// ASSERTs
|
// ASSERTs
|
||||||
|
@ -714,7 +715,8 @@ StrnCatGrowLeft (
|
||||||
*Destination = AllocateZeroPool((Count+1)*sizeof(CHAR16));
|
*Destination = AllocateZeroPool((Count+1)*sizeof(CHAR16));
|
||||||
}
|
}
|
||||||
|
|
||||||
*Destination = CopyMem((*Destination)+StrLen(Source), *Destination, StrSize(*Destination));
|
CopySize = StrSize(*Destination);
|
||||||
|
*Destination = CopyMem((*Destination)+StrLen(Source), *Destination, CopySize);
|
||||||
*Destination = CopyMem(*Destination, Source, StrLen(Source));
|
*Destination = CopyMem(*Destination, Source, StrLen(Source));
|
||||||
return (*Destination);
|
return (*Destination);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue