mirror of
https://github.com/Mattiwatti/EfiGuard
synced 2026-08-17 06:26:03 -04:00
Misc. warning fixes
This commit is contained in:
parent
4ad9836d58
commit
dea33fff9f
4 changed files with 6 additions and 6 deletions
|
|
@ -192,8 +192,8 @@ AnalyzeCi(
|
|||
|
||||
// Map file as SEC_IMAGE
|
||||
WCHAR Path[MAX_PATH];
|
||||
const CHAR NtoskrnlExe[] = "ntoskrnl.exe";
|
||||
const CHAR CiDll[] = "CI.dll";
|
||||
constexpr CHAR NtoskrnlExe[] = "ntoskrnl.exe";
|
||||
constexpr CHAR CiDll[] = "CI.dll";
|
||||
|
||||
_snwprintf(Path, MAX_PATH / sizeof(WCHAR), L"%ls\\System32\\%hs",
|
||||
SharedUserData->NtSystemRoot,
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ NtProcessStartupW(
|
|||
Peb = Peb != nullptr ? NtCurrentPeb() : NtCurrentTeb()->ProcessEnvironmentBlock; // And this turd is to get Resharper to shut up about assigning to Peb before reading from it. Note LHS == RHS
|
||||
|
||||
// Get the command line from the startup parameters. If there isn't one, use the executable name
|
||||
PRTL_USER_PROCESS_PARAMETERS Params = RtlNormalizeProcessParams(Peb->ProcessParameters);
|
||||
const PRTL_USER_PROCESS_PARAMETERS Params = RtlNormalizeProcessParams(Peb->ProcessParameters);
|
||||
const PWCHAR CommandLineBuffer = Params->CommandLine.Buffer == nullptr || Params->CommandLine.Buffer[0] == L'\0'
|
||||
? Params->ImagePathName.Buffer
|
||||
: Params->CommandLine.Buffer;
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ STATIC CHAR16* mDriverPaths[] = {
|
|||
};
|
||||
|
||||
|
||||
extern
|
||||
VOID
|
||||
EFIAPI
|
||||
BmSetMemoryTypeInformationVariable(
|
||||
|
|
@ -48,6 +47,7 @@ STATIC
|
|||
BOOLEAN
|
||||
EFIAPI
|
||||
WaitForKey(
|
||||
VOID
|
||||
)
|
||||
{
|
||||
EFI_INPUT_KEY Key = { 0, 0 };
|
||||
|
|
@ -55,7 +55,7 @@ WaitForKey(
|
|||
gBS->WaitForEvent(1, &gST->ConIn->WaitForKey, &Index);
|
||||
gST->ConIn->ReadKeyStroke(gST->ConIn, &Key);
|
||||
|
||||
return (BOOLEAN)(Key.ScanCode != SCAN_ESC);
|
||||
return Key.ScanCode != SCAN_ESC;
|
||||
}
|
||||
|
||||
#if CONFIGURE_DRIVER
|
||||
|
|
|
|||
|
|
@ -400,7 +400,7 @@ DisablePatchGuard(
|
|||
// Print info
|
||||
PRINT_KERNEL_PATCH_MSG(L"\r\n Patched KeInitAmd64SpecificState [RVA: 0x%X].\r\n",
|
||||
(UINT32)(KeInitAmd64SpecificState - ImageBase));
|
||||
PRINT_KERNEL_PATCH_MSG(L" Patched %S [RVA: 0x%X].\r\n",
|
||||
PRINT_KERNEL_PATCH_MSG(L" Patched %ls [RVA: 0x%X].\r\n",
|
||||
FuncName, (UINT32)(CcInitializeBcbProfiler - ImageBase));
|
||||
if (ExpLicenseWatchInitWorker != NULL)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue