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:
wuyizhong
2006-11-07 03:03:06 +00:00
parent b51f14f4d6
commit 1d940d05b5
3 changed files with 23 additions and 4 deletions

View File

@ -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)