Skip to content

Commit c0adee2

Browse files
committed
fix(Taskbar10): fix IME right click menu not working on 28000+
1 parent b532116 commit c0adee2

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

ExplorerPatcher/utility.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,6 +1194,7 @@ inline BOOL WINAPI PatchContextMenuOfNewMicrosoftIME(BOOL* bFound)
11941194
#if defined(_M_X64)
11951195
// 44 38 ?? ?? 74 ?? ?? 8B CE E8 ?? ?? ?? ?? 85 C0
11961196
// ^^ Change jz into jmp
1197+
// Ref: CTsfHandler::_OnOopImeContextMenu()
11971198
PBYTE match = (PBYTE)FindPattern(
11981199
pInputSwitchText,
11991200
cbInputSwitchText,
@@ -1213,13 +1214,14 @@ inline BOOL WINAPI PatchContextMenuOfNewMicrosoftIME(BOOL* bFound)
12131214

12141215
return TRUE;
12151216
#elif defined(_M_ARM64)
1216-
// A8 43 40 39 C8 04 00 34 E0 03 14 AA
1217+
// A8 43 40 39 C8 04 00 34 E0 03 ?? AA
12171218
// ^^^^^^^^^^^ Change CBZ to B
1219+
// Ref: CTsfHandler::_OnOopImeContextMenu()
12181220
PBYTE match = (PBYTE)FindPattern(
12191221
pInputSwitchText,
12201222
cbInputSwitchText,
1221-
"\xA8\x43\x40\x39\xC8\x04\x00\x34\xE0\x03\x14\xAA",
1222-
"xxxxxxxxxxxx"
1223+
"\xA8\x43\x40\x39\xC8\x04\x00\x34\xE0\x03\x00\xAA",
1224+
"xxxxxxxxxx?x"
12231225
);
12241226
if (!match)
12251227
return FALSE;

0 commit comments

Comments
 (0)