Reset configPlist before reloading.

This commit is contained in:
jief666 2021-12-05 09:31:28 -06:00
parent d09312d0f7
commit eebffc9de8

View File

@ -563,6 +563,7 @@ return Status;
*/
EFI_STATUS ConfigManager::LoadConfigPlist(const XStringW& ConfName)
{
configPlist.reset();
configPlist.SMBIOS.defaultMacModel = GetDefaultModel();
EFI_STATUS Status = LoadPlist(ConfName, &configPlist);
@ -575,6 +576,7 @@ EFI_STATUS ConfigManager::LoadConfigPlist(const XStringW& ConfName)
*/
EFI_STATUS ConfigManager::LoadSMBIOSPlist(const XStringW& ConfName)
{
smbiosPlist.reset();
smbiosPlist.SMBIOS.defaultMacModel = GetDefaultModel();
EFI_STATUS Status = LoadPlist(ConfName, &smbiosPlist);