mirror of https://github.com/acidanthera/audk.git
Fix track EDKT97: Use {0} as NULL value for VOID* type PCD but not {}
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1077 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
9a557fb6c7
commit
6ab88a7c86
|
@ -2579,7 +2579,12 @@ public class CollectPCDAction {
|
||||||
strValue = datum.substring(start + 1, end);
|
strValue = datum.substring(start + 1, end);
|
||||||
strValue = strValue.trim();
|
strValue = strValue.trim();
|
||||||
if (strValue.length() == 0) {
|
if (strValue.length() == 0) {
|
||||||
break;
|
exceptionString = String.format ("[FPD file error] The datum type of PCD %s in %s is VOID*, and "+
|
||||||
|
"it is byte array in fact, but '{}' is not valid for NULL datam but"+
|
||||||
|
" need use '{0}'",
|
||||||
|
cName,
|
||||||
|
moduleName);
|
||||||
|
return exceptionString;
|
||||||
}
|
}
|
||||||
strValueArray = strValue.split(",");
|
strValueArray = strValue.split(",");
|
||||||
for (index = 0; index < strValueArray.length; index ++) {
|
for (index = 0; index < strValueArray.length; index ++) {
|
||||||
|
|
Loading…
Reference in New Issue