- Fixed compilation with MinGW-w64 64 bit.

This commit is contained in:
drfrag 2018-12-17 22:48:09 +01:00 committed by Rachael Alexanderson
parent 585058c65e
commit 1ef5becd4f

View file

@ -291,7 +291,11 @@ void *AddJitFunction(asmjit::CodeHolder* code, JitCompiler *compiler)
RUNTIME_FUNCTION *table = (RUNTIME_FUNCTION*)(unwindptr + unwindInfoSize);
table[0].BeginAddress = (DWORD)(ptrdiff_t)(startaddr - baseaddr);
table[0].EndAddress = (DWORD)(ptrdiff_t)(endaddr - baseaddr);
#ifndef __MINGW64__
table[0].UnwindInfoAddress = (DWORD)(ptrdiff_t)(unwindptr - baseaddr);
#else
table[0].UnwindData = (DWORD)(ptrdiff_t)(unwindptr - baseaddr);
#endif
BOOLEAN result = RtlAddFunctionTable(table, 1, (DWORD64)baseaddr);
JitFrames.Push((uint8_t*)table);
if (result == 0)