From 4e2a66d9c2ba69499786e78053fc849fed7b0db2 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 4 Aug 2023 22:05:20 +0100 Subject: 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! --- src/bind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/bind.c b/src/bind.c index a1481bb..deb943e 100644 --- a/src/bind.c +++ b/src/bind.c @@ -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 , dword ptr [ * 8 + s_pKeyInfo] if (p[0] == X86_MOVRMW && (p[1] & 0xC7) == 4 /* SIB + imm32 */ && -- cgit v1.2.3