unused variable

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
SergeySlice 2022-05-17 19:43:08 +03:00
parent cebc223bb8
commit 3216ec0696
2 changed files with 2 additions and 2 deletions

View File

@ -916,7 +916,7 @@ IsOsxHibernated (IN LOADER_ENTRY *Entry)
xs8.takeValueFrom(Ptr);
// Status = StrToGuidBE(xs8, &TmpGuid);
TmpGuid.takeValueFromBE(xs8);
if (EFI_ERROR(Status)) {
if (TmpGuid.isNull()) {
DBG(" cant convert Str %ls to EFI_GUID\n", Ptr);
} else {
XStringW TmpStr = TmpGuid.toXStringW();

View File

@ -515,7 +515,7 @@ EFI_GUID getSmUUIDFromSmbios()
DBG("SmbiosTable: Type 1 (System Information) not found!\n");
return nullGuid;
}
EFI_GUID TmpGuid;
// EFI_GUID TmpGuid;
// XString8 g = GuidBeToXString8(SmbiosTable.Type1->Uuid); // should we use the "variant" field to know if it's LE or BE
XString8 guidBE = SmbiosTable.Type1->Uuid.toXString8(true); // This is the difference between PC and Mac. the UUID will be swapped (read as a LE, sent as a BE).