Fixed an issue which will cause wrong library instances used for constructor re-ordering.
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 30 Nov 2007 07:04:55 +0000 (07:04 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 30 Nov 2007 07:04:55 +0000 (07:04 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@894 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/Common/EdkIIWorkspaceBuild.py

index 9041c0a..5ece22d 100755 (executable)
@@ -882,7 +882,7 @@ class WorkspaceBuild(object):
                 elif LibraryPath == None or LibraryPath == "":\r
                     continue\r
                 else:\r
-                    LibraryModule = ModuleDatabase[LibraryPath]\r
+                    LibraryModule = LibraryInstance[LibraryClassName]\r
 \r
                 if LibraryModule.ConstructorList != [] and LibraryModule not in Constructor:\r
                     Constructor.append(LibraryModule)\r