Fixed CRLF issue during parsing FDF file
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 23 Apr 2008 03:12:02 +0000 (03:12 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 23 Apr 2008 03:12:02 +0000 (03:12 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1170 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/GenFds/FdfParser.py

index e82a887..96f73c8 100644 (file)
@@ -256,7 +256,7 @@ class FdfParser:
     #\r
     def __EndOfLine(self):\r
         SizeOfCurrentLine = len(self.Profile.FileLinesList[self.CurrentLineNumber - 1])\r
-        if self.CurrentOffsetWithinLine >= SizeOfCurrentLine - 1:\r
+        if self.CurrentOffsetWithinLine >= SizeOfCurrentLine:\r
             return True\r
         else:\r
             return False\r