diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2023-08-04 22:05:20 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2023-08-04 22:05:20 +0100 |
commit | 4e2a66d9c2ba69499786e78053fc849fed7b0db2 (patch) | |
tree | f531e9c64f5182613f5bf8ad1ffcec7916f13811 /src/bind.c | |
parent | 9a5eae7597bae8ceb8f033bcd44d39acd0ba63bc (diff) |
Fix finding key binding list in some newer builds
Apparently there's slightly longer code for whatever reason which made
32 too conservative of a search window. Easy fix!
Diffstat (limited to 'src/bind.c')
-rw-r--r-- | src/bind.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -38,7 +38,7 @@ const char *bind_get(int keycode) { return keyinfo[keycode].binding; } static bool find_keyinfo(con_cmdcb klbc_cb) { #ifdef _WIN32 const uchar *insns = (const uchar *)klbc_cb; - for (const uchar *p = insns; p - insns < 32;) { + for (const uchar *p = insns; p - insns < 64;) { // key_listboundkeys loops through each index, moving into a register: // mov <reg>, dword ptr [<reg> * 8 + s_pKeyInfo] if (p[0] == X86_MOVRMW && (p[1] & 0xC7) == 4 /* SIB + imm32 */ && |