From b236ce576438b339715e53fe64f6b0ad3d71e2d8 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 6 Jun 2024 10:47:16 +0200 Subject: [PATCH] ntdll: Fix a couple of compiler warnings on ARM64EC. --- dlls/ntdll/unwind.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ntdll/unwind.c b/dlls/ntdll/unwind.c index 04c843baefd..91b07a7cc8c 100644 --- a/dlls/ntdll/unwind.c +++ b/dlls/ntdll/unwind.c @@ -894,7 +894,7 @@ EXCEPTION_DISPOSITION WINAPI __C_specific_handler( EXCEPTION_RECORD *rec, void * if (table->ScopeRecord[i].HandlerAddress != EXCEPTION_EXECUTE_HANDLER) { - EXCEPTION_POINTERS ptrs = { rec, context }; + EXCEPTION_POINTERS ptrs = { rec, (CONTEXT *)context }; handler = (void *)(base + table->ScopeRecord[i].HandlerAddress); TRACE( "scope %u calling filter %p ptrs %p frame %p\n", i, handler, &ptrs, frame ); @@ -910,7 +910,7 @@ EXCEPTION_DISPOSITION WINAPI __C_specific_handler( EXCEPTION_RECORD *rec, void * } TRACE( "unwinding to target %Ix\n", base + table->ScopeRecord[i].JumpTarget ); RtlUnwindEx( frame, (char *)base + table->ScopeRecord[i].JumpTarget, - rec, 0, dispatch->ContextRecord, dispatch->HistoryTable ); + rec, 0, (CONTEXT *)dispatch->ContextRecord, dispatch->HistoryTable ); } } return ExceptionContinueSearch;