diff options
author | Matthijs Lavrijsen <mattiwatti@gmail.com> | 2021-01-07 16:09:25 +0100 |
---|---|---|
committer | Matthijs Lavrijsen <mattiwatti@gmail.com> | 2021-01-07 16:09:25 +0100 |
commit | 5c649201bb5359e10f4cbc4a855cf8ef3b4083f1 (patch) | |
tree | aa033fa708a9d5f12e30120e65fddff91612445c | |
parent | 0256353e4523b96bc314e85486ce3289a5c002a0 (diff) |
Fix MSVC 2019 and GCC 10 warnings
-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 |