diff options
-rw-r--r-- | Application/EfiDSEFix/src/EfiDSEFix.cpp | 4 | ||||
-rw-r--r-- | Application/Loader/Loader.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Application/EfiDSEFix/src/EfiDSEFix.cpp b/Application/EfiDSEFix/src/EfiDSEFix.cpp index 59b6a34..9235e82 100644 --- a/Application/EfiDSEFix/src/EfiDSEFix.cpp +++ b/Application/EfiDSEFix/src/EfiDSEFix.cpp @@ -252,6 +252,8 @@ NTSTATUS TestSetVariableHook( ) { + UINT16 Mz; + // Enable privileges in case we were called directly from the CLI with --check BOOLEAN SeSystemEnvironmentWasEnabled; NTSTATUS Status = SetSystemEnvironmentPrivilege(TRUE, &SeSystemEnvironmentWasEnabled); @@ -306,7 +308,7 @@ TestSetVariableHook( } // Check if hal.dll still starts with "MZ" - UINT16 Mz = static_cast<UINT16>(BackdoorData.u.s.Word); + Mz = static_cast<UINT16>(BackdoorData.u.s.Word); if (Mz != 0x5A4D) { Printf(L"Failure: received unexpected data from test read of 0x%p. Expected: 4D 5A, received: %02X %02X.\n", diff --git a/Application/Loader/Loader.c b/Application/Loader/Loader.c index d240c5d..1bdc860 100644 --- a/Application/Loader/Loader.c +++ b/Application/Loader/Loader.c @@ -37,7 +37,7 @@ STATIC CHAR16* mDriverPaths[] = { extern -EFI_STATUS +VOID EFIAPI BmSetMemoryTypeInformationVariable( IN BOOLEAN Boot |