From 9508d0fa4fb2cd2ff03604bc3b1b1abf8f69ccb6 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Fri, 16 Dec 2011 08:52:13 +0000 Subject: Sync BaseTool trunk (version r2474) into EDKII BaseTools. Signed-off-by: lgao4 Reviewed-by: gikidy git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12883 6f19259b-4bc3-4df7-8a09-765794883524 --- BaseTools/Source/Python/UPT/Parser/InfParser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BaseTools/Source/Python/UPT/Parser/InfParser.py') diff --git a/BaseTools/Source/Python/UPT/Parser/InfParser.py b/BaseTools/Source/Python/UPT/Parser/InfParser.py index 79f71448ee..fb90c396f7 100644 --- a/BaseTools/Source/Python/UPT/Parser/InfParser.py +++ b/BaseTools/Source/Python/UPT/Parser/InfParser.py @@ -339,7 +339,7 @@ class InfParser(InfSectionParser): # # Found the first section, No file header. # - if not DefineSectionParsedFlag: + if DefineSectionParsedFlag and not HeaderCommentEnd: Logger.Error("InfParser", FORMAT_INVALID, ST.ERR_INF_PARSER_HEADER_MISSGING, -- cgit v1.2.3