Skip to content

Commit 5853b16

Browse files
committed
Fixed netmessages vtable finder on Linux
1 parent 51543b1 commit 5853b16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/netmessage.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ namespace NetMessage
9393

9494
#elif defined ARCHITECTURE_X86
9595

96-
static const uintptr_t CLC_CmdKeyValues_offset = 743;
96+
static const uintptr_t CLC_CmdKeyValues_offset = 744;
9797

9898
static const uintptr_t SVC_CreateStringTable_offset = 567;
9999

@@ -436,7 +436,7 @@ namespace NetMessage
436436

437437
if( instruction.opcode == 0xC7 &&
438438
( instruction.flags & F_IMM32 ) != 0 &&
439-
instruction.imm.imm32 >= 10000 &&
439+
instruction.imm.imm32 >= 10000 && instruction.imm.imm32 != 0xFFFFFFFF &&
440440
( instruction.len == 6 || instruction.len == 7 ) )
441441
{
442442
*vtable = reinterpret_cast<void **>( hde_getimm( instruction ) );

0 commit comments

Comments
 (0)