Browse Source

engine: platform: win32: fix calculating RVAs for LLP64

pull/2/head
Alibek Omarov 10 months ago
parent
commit
75e5da071c
  1. 3
      engine/platform/win32/lib_win.h

3
engine/platform/win32/lib_win.h

@ -16,8 +16,9 @@ GNU General Public License for more details. @@ -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…
Cancel
Save