From: Yunhua Feng Date: Fri, 27 Apr 2018 01:15:56 +0000 (+0800) Subject: BaseTools: Fix regression bug by 3378782691af X-Git-Tag: edk2-stable201903~1804 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=a802b269061cf83c17b74dc166cf21efe25f938f;hp=1df5fb2d83d9eca2d3b4b87fab7a0ec9f288cb6f;p=mirror_edk2.git BaseTools: Fix regression bug by 3378782691af Fix regression bug by 3378782691af Fixes:https://bugzilla.tianocore.org/show_bug.cgi?id=941 Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yunhua Feng Reviewed-by: Yonghong Zhu --- diff --git a/BaseTools/Source/Python/Workspace/MetaFileParser.py b/BaseTools/Source/Python/Workspace/MetaFileParser.py index 550359f9ab..788eca1761 100644 --- a/BaseTools/Source/Python/Workspace/MetaFileParser.py +++ b/BaseTools/Source/Python/Workspace/MetaFileParser.py @@ -1543,7 +1543,7 @@ class DscParser(MetaFileParser): IncludedFileTable = MetaFileStorage(self._Table.Cur, IncludedFile1, MODEL_FILE_DSC, False) FromItem = self._Content[self._ContentIndex - 1][0] - if self._Content[self._ContentIndex - 1][8] != -1.0: + if self._InSubsection: Owner = self._Content[self._ContentIndex - 1][8] else: Owner = self._Content[self._ContentIndex - 1][0]