mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
Randomize a Guid value if it can not be retrieved from inf file. This will prevent user input an illegal one.
User can adjust it via framework wizard if the random one does not requirement. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1495 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
8cf2c0a7d7
commit
af22c12f37
@ -81,11 +81,11 @@ public class MsaWriter {
|
||||
} else {
|
||||
msaheader.setModuleName(mi.modulename = Query("Module Name Not Found! Please Input ModuleName"));
|
||||
}
|
||||
if (mi.guidvalue != null) {
|
||||
msaheader.setGuidValue(mi.guidvalue);
|
||||
} else {
|
||||
msaheader.setGuidValue(mi.guidvalue = Query("Guid Value Not Found! Please Input Guid Value"));
|
||||
}
|
||||
if (mi.guidvalue == null) {
|
||||
mi.guidvalue = UUID.randomUUID().toString();
|
||||
MigrationTool.ui.println ("Guid value can not be retrieved from inf file. Generate " + mi.guidvalue + " at random!");
|
||||
}
|
||||
msaheader.setGuidValue(mi.guidvalue);
|
||||
if (mi.moduletype != null) {
|
||||
msaheader.setModuleType(ModuleTypeDef.Enum.forString(mi.getModuleType()));
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user