Fixed a R8 module build issue, in which .dxs file will cause source files not to...
[people/mcb30/basetools.git] / Source / Python / Workspace / WorkspaceDatabase.py
index b016af7..32b14e5 100644 (file)
@@ -1371,7 +1371,7 @@ class InfBuildData(ModuleBuildClassObject):
                     if not ValidFile(File, self._ModuleDir):\r
                         EdkLogger.error('build', FILE_NOT_FOUND, ExtraData=File,\r
                                         File=self.DescFilePath, Line=LineNo)\r
-                    if self._Sources == None:\r
+                    if self.Sources == None:\r
                         self._Sources = []\r
                     self._Sources.append(ModuleSourceFileClass(File, "", "", "", ""))\r
                 else:\r