Skip to content

Commit 98a6e11

Browse files
committed
remove other 32bit-isms from sdktools
1 parent 9e32f64 commit 98a6e11

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extensions/sdktools/hooks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ bool CHookManager::SendFile(const char *filename, unsigned int transferID)
584584
#if !defined CLIENTVOICE_HOOK_SUPPORT
585585
bool CHookManager::ProcessVoiceData(CLC_VoiceData *msg)
586586
{
587-
IClient *pClient = (IClient *)((intptr_t)(META_IFACEPTR(IClient)) - 4);
587+
IClient *pClient = (IClient *)((intptr_t)(META_IFACEPTR(IClient)) - sizeof(intptr_t));
588588
if (pClient == NULL)
589589
{
590590
return true;

extensions/sdktools/vhelpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ CEntityFactoryDictionary *GetEntityFactoryDictionary()
754754

755755
// Get real address of function
756756
// Address of signature + offset of relative offset + sizeof(int32_t) offset + relative offset
757-
addr = (void *)((intptr_t)addr + offset + 4 + funcOffset);
757+
addr = (void *)((intptr_t)addr + offset + sizeof(intptr_t) + funcOffset);
758758
}
759759

760760
pWrapper = g_pBinTools->CreateCall(addr, CallConv_Cdecl, &retData, NULL, 0);

0 commit comments

Comments
 (0)