File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments