Skip to content

Commit

Permalink
Merge branch 'valinet:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
deep-soft authored Feb 23, 2024
2 parents 6606f89 + a0885c6 commit d76c347
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ExplorerPatcher/utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -600,13 +600,13 @@ inline BOOL WINAPI PatchContextMenuOfNewMicrosoftIME(BOOL* bFound)
MODULEINFO mi;
GetModuleInformation(GetCurrentProcess(), hInputSwitch, &mi, sizeof(mi));

// 44 38 ?? ?? 74 ?? 48 8B CE E8 ?? ?? ?? ?? 85 C0
// 44 38 ?? ?? 74 ?? ?? 8B CE E8 ?? ?? ?? ?? 85 C0
// ^^ Change jz into jmp
PBYTE match = (PBYTE)FindPattern(
hInputSwitch,
mi.SizeOfImage,
"\x44\x38\x00\x00\x74\x00\x48\x8B\xCE\xE8\x00\x00\x00\x00\x85\xC0",
"xx??x?xxxx????xx"
"\x44\x38\x00\x00\x74\x00\x00\x8B\xCE\xE8\x00\x00\x00\x00\x85\xC0",
"xx??x??xxx????xx"
);
if (!match)
return FALSE;
Expand Down

0 comments on commit d76c347

Please sign in to comment.