From e7962fa5ea4e0399bea7d16d08beb29e76c48ff0 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 8 Apr 2023 12:18:53 +0100 Subject: Fix some miscellaneous stupid bugs and jank Note: fixes.c was changed this year, so correct the copyright year too. --- src/alias.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/alias.c') diff --git a/src/alias.c b/src/alias.c index b1f7ad7..c281a37 100644 --- a/src/alias.c +++ b/src/alias.c @@ -1,5 +1,5 @@ /* - * Copyright © 2022 Michael Smith + * Copyright © 2023 Michael Smith * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -76,7 +76,7 @@ static bool find_alias_head(con_cmdcb alias_cb) { // alias command with no args calls ConMsg() then loads the head pointer // that asm looks like: call ; mov , dword ptr [x] // (we don't care about the exact registers) - if (p[0] == X86_MISCMW && (p[1] & 0xF0) == 0xD0 && + if (p[0] == X86_MISCMW && (p[1] & 0xF8) == 0xD0 && p[2] == X86_MOVRMW && (p[3] & 0xC7) == 0x05) { _alias_head = mem_loadptr(p + 4); return true; -- cgit v1.2.3