mirror of https://github.com/acidanthera/audk.git
fixed bug occurred when new msa file and spd file are in the same directory.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1985 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
8cc715257a
commit
e5d3db39cb
|
@ -1829,8 +1829,17 @@ public class CombineMsa {
|
||||||
System.out.println("Please use the FrameworkWizard to add this MSA file to the package.");
|
System.out.println("Please use the FrameworkWizard to add this MSA file to the package.");
|
||||||
System.exit(FAIL);
|
System.exit(FAIL);
|
||||||
}
|
}
|
||||||
path2Msa = Cwd.replace(path2Spd, "");
|
if (path2Spd.equals(Cwd + "/"))
|
||||||
path2Msa = path2Msa + "/" + msaFn;
|
{
|
||||||
|
// .msa file and .spd in the same directory
|
||||||
|
path2Msa = msaFn;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
path2Msa = Cwd.replace(path2Spd, "");
|
||||||
|
path2Msa = path2Msa + "/" + msaFn;
|
||||||
|
}
|
||||||
|
|
||||||
return path2Msa;
|
return path2Msa;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue