Update ParseInf to resolve different line separator between WINDOWS and LINUX (\r\n vs. \n). Update GenFvImage to resolve different file separator between WINDOWS and LINUX (\ vs. /). Add variable initialize for SymImageSize.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1908 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -116,7 +116,15 @@ Returns:
|
||||
//
|
||||
// Add the null termination over the 0x0D
|
||||
//
|
||||
InputBuffer[CharsToCopy - 1] = '\0';
|
||||
if (InputBuffer[CharsToCopy - 1] == '\r') {
|
||||
|
||||
InputBuffer[CharsToCopy - 1] = '\0';
|
||||
|
||||
} else {
|
||||
|
||||
InputBuffer[CharsToCopy] = '\0';
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
// Increment the current file pointer (include the 0x0A)
|
||||
|
Reference in New Issue
Block a user