From c342503bd4bbb8cdc4ec0c605f41c05524faf4d0 Mon Sep 17 00:00:00 2001 From: risku <125939943+ultracage@users.noreply.github.com> Date: Mon, 1 Jan 2024 01:32:24 +0000 Subject: [PATCH] Update main.c --- boot/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boot/main.c b/boot/main.c index 2d32bc1..59b1a0d 100644 --- a/boot/main.c +++ b/boot/main.c @@ -108,7 +108,7 @@ EFI_STATUS EFIAPI SetupHooks(EFI_HANDLE bootmgrHandle) { // Hook ImgArchStartBootApplication to setup winload hooks VOID *func = FindPattern(bootmgr->ImageBase, bootmgr->ImageSize, - "\x48\x8B\xC4\x48\x89\x58\x20\x44\x89\x40\x18\x48" + "\x48\x8B\xC4\x48\x89\x58\x20\x44\x89\x40\x18\x4C" // Win11 23h2 "\x89\x50\x10\x48\x89\x48\x08\x55\x56\x57\x41\x54", "xxxxxxxxxxxxxxxxxxxxxxxx"); @@ -601,4 +601,4 @@ EFI_STATUS EFIAPI SetBootCurrentToWindowsBootmgr() { return status; } -EFI_STATUS EFIAPI UefiUnload(EFI_HANDLE imageHandle) { return EFI_SUCCESS; } \ No newline at end of file +EFI_STATUS EFIAPI UefiUnload(EFI_HANDLE imageHandle) { return EFI_SUCCESS; }