mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-11 15:47:55 +00:00
engine: platform: win32: fix calculating RVAs for LLP64
This commit is contained in:
parent
52bd923d9d
commit
75e5da071c
@ -16,8 +16,9 @@ GNU General Public License for more details.
|
||||
#include "library.h"
|
||||
#include <winnt.h>
|
||||
#include <psapi.h>
|
||||
#include STDINT_H
|
||||
|
||||
#define CALCULATE_ADDRESS( base, offset ) ( ( DWORD )( base ) + ( DWORD )( offset ) )
|
||||
#define CALCULATE_ADDRESS( base, offset ) ((uint8_t *)( base ) + (uintptr_t)( offset ))
|
||||
|
||||
FARPROC MemoryGetProcAddress( void *module, const char *name );
|
||||
void MemoryFreeLibrary( void *hInstance );
|
||||
|
Loading…
Reference in New Issue
Block a user