]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/GenBuild/org/tianocore/build/id/PlatformIdentification.java
Fix T105. It is caused by cpptasks which change automati cally root directory like...
[mirror_edk2.git] / Tools / Source / GenBuild / org / tianocore / build / id / PlatformIdentification.java
index 530ecedc86aefde61b6824a9ce68b588618825a7..39a13d92d60c7c5ba388fa7b5185319fb365e732 100644 (file)
@@ -51,10 +51,10 @@ public class PlatformIdentification extends Identification{
     }\r
     \r
     public String getRelativeFpdFile (){\r
-        return fpdFile.getPath().substring(GlobalData.getWorkspacePath().length());\r
+        return fpdFile.getPath().substring(GlobalData.getWorkspacePath().length() + 1);\r
     }\r
     \r
     public String getPlatformRelativeDir(){\r
-        return fpdFile.getParent().substring(GlobalData.getWorkspacePath().length());\r
+        return fpdFile.getParent().substring(GlobalData.getWorkspacePath().length() + 1);\r
     }\r
 }
\ No newline at end of file