1.Fix SetMem64.S to not use SSE3 instruction
2.Make sure NULL-terminator can be appended. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@945 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -550,7 +550,7 @@ BasePrintLibVSPrint (
|
||||
//
|
||||
// Null terminate the Unicode or ASCII string
|
||||
//
|
||||
BasePrintLibFillBuffer (Buffer, EndBuffer, 1, 0, BytesPerOutputCharacter);
|
||||
BasePrintLibFillBuffer (Buffer, EndBuffer + BytesPerOutputCharacter, 1, 0, BytesPerOutputCharacter);
|
||||
//
|
||||
// Make sure output buffer cannot contain more than PcdMaximumUnicodeStringLength
|
||||
// Unicode characters if PcdMaximumUnicodeStringLength is not zero.
|
||||
|
@@ -193,7 +193,7 @@ BasePrintLibConvertValueToString (
|
||||
}
|
||||
}
|
||||
|
||||
BasePrintLibFillBuffer (Buffer, EndBuffer, 1, 0, Increment);
|
||||
BasePrintLibFillBuffer (Buffer, EndBuffer + Increment, 1, 0, Increment);
|
||||
|
||||
return ((Buffer - OriginalBuffer) / Increment);
|
||||
}
|
||||
|
Reference in New Issue
Block a user