summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python
diff options
context:
space:
mode:
authorYunhua Feng <yunhuax.feng@intel.com>2018-04-27 09:15:56 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-05-02 09:51:12 +0800
commita802b269061cf83c17b74dc166cf21efe25f938f (patch)
tree826a86ed22130e7bbc9514b22b325e1b4ca2e481 /BaseTools/Source/Python
parent1df5fb2d83d9eca2d3b4b87fab7a0ec9f288cb6f (diff)
downloadedk2-a802b269061cf83c17b74dc166cf21efe25f938f.tar.gz
edk2-a802b269061cf83c17b74dc166cf21efe25f938f.tar.bz2
edk2-a802b269061cf83c17b74dc166cf21efe25f938f.zip
BaseTools: Fix regression bug by 3378782691af
Fix regression bug by 3378782691af Fixes:https://bugzilla.tianocore.org/show_bug.cgi?id=941 Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python')
-rw-r--r--BaseTools/Source/Python/Workspace/MetaFileParser.py2
1 files changed, 1 insertions, 1 deletions
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]