Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove other 32bit-isms from sdktools
Browse files Browse the repository at this point in the history
bottiger1 committed May 21, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent cdc837f commit 8612720
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
@@ -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;
2 changes: 1 addition & 1 deletion extensions/sdktools/vhelpers.cpp
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 8612720

Please sign in to comment.