Skip to content

Commit

Permalink
remove other 32bit-isms from sdktools
Browse files Browse the repository at this point in the history
  • Loading branch information
bottiger1 committed May 21, 2024
1 parent cdc837f commit 8612720
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extensions/sdktools/hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ bool CHookManager::SendFile(const char *filename, unsigned int transferID)
#if !defined CLIENTVOICE_HOOK_SUPPORT
bool CHookManager::ProcessVoiceData(CLC_VoiceData *msg)
{
IClient *pClient = (IClient *)((intptr_t)(META_IFACEPTR(IClient)) - 4);
IClient *pClient = (IClient *)((intptr_t)(META_IFACEPTR(IClient)) - sizeof(intptr_t));
if (pClient == NULL)
{
return true;
Expand Down
2 changes: 1 addition & 1 deletion extensions/sdktools/vhelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ CEntityFactoryDictionary *GetEntityFactoryDictionary()

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

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

0 comments on commit 8612720

Please sign in to comment.