Fix incorrect display of warning (ProductName specified doesn't exist).

This commit is contained in:
jief666 2022-05-20 11:30:32 +02:00
parent ff012267ca
commit 30e9d2202f

View File

@ -155,7 +155,7 @@ extern "C" int main(int argc, char * const argv[])
if ( ProductName.notEmpty() ) { if ( ProductName.notEmpty() ) {
// if a ProductName is specified in plist, this will be ignored. // if a ProductName is specified in plist, this will be ignored.
configPlistTest.SMBIOS.defaultMacModel = GetModelFromString(ProductName); configPlistTest.SMBIOS.defaultMacModel = GetModelFromString(ProductName);
if ( configPlistTest.SMBIOS.defaultMacModel ) { if ( configPlistTest.SMBIOS.defaultMacModel == MaxMacModel ) {
printf("Warning: ProductName specified in command line (%s) doesn't exist. Command line option ignored.\n", ProductName.c_str()); printf("Warning: ProductName specified in command line (%s) doesn't exist. Command line option ignored.\n", ProductName.c_str());
} }
} }