From 295fc7d7f72cdb4e465ced73b92133aba66f4905 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Wed, 17 Oct 2018 08:54:41 +0200 Subject: [PATCH] Revert "- the build tests are using some ancient dino 7.1 Windows SDK where UnwindInfoAddress isn't part of the struct yet." This reverts commit 20516e1c0be10d219d11aa685145d0f67a3b4eec. --- src/scripting/vm/jit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/vm/jit.cpp b/src/scripting/vm/jit.cpp index ce3ca5b4c..aa599ab60 100644 --- a/src/scripting/vm/jit.cpp +++ b/src/scripting/vm/jit.cpp @@ -274,7 +274,7 @@ static void *AddJitFunction(asmjit::CodeHolder* code, asmjit::CCFunc *func) RUNTIME_FUNCTION *table = (RUNTIME_FUNCTION*)(unwindptr + unwindInfoSize); table[0].BeginAddress = (DWORD)(ptrdiff_t)(startaddr - baseaddr); table[0].EndAddress = (DWORD)(ptrdiff_t)(endaddr - baseaddr); - table[0].UnwindData = (DWORD)(ptrdiff_t)(unwindptr - baseaddr); + table[0].UnwindInfoAddress = (DWORD)(ptrdiff_t)(unwindptr - baseaddr); BOOLEAN result = RtlAddFunctionTable(table, 1, (DWORD64)baseaddr); if (result == 0) I_FatalError("RtlAddFunctionTable failed");