[PATCH] ntdll: Fix alignment mask size in RtlInitializeExtendedContext2().
Paul Gofman
pgofman at codeweavers.com
Tue Oct 26 12:00:27 CDT 2021
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
---
dlls/ntdll/exception.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/exception.c b/dlls/ntdll/exception.c
index 3c499c4fa80..c3714e8369b 100644
--- a/dlls/ntdll/exception.c
+++ b/dlls/ntdll/exception.c
@@ -837,7 +837,7 @@ NTSTATUS WINAPI RtlInitializeExtendedContext2( void *context, ULONG context_flag
if ((context_flags & 0x40) && !(supported_mask = RtlGetEnabledExtendedFeatures( ~(ULONG64)0 )))
return STATUS_NOT_SUPPORTED;
- context = (void *)(((ULONG_PTR)context + p->true_alignment) & ~p->true_alignment);
+ context = (void *)(((ULONG_PTR)context + p->true_alignment) & ~(ULONG_PTR)p->true_alignment);
*(ULONG *)((BYTE *)context + p->flags_offset) = context_flags;
*context_ex = c_ex = (CONTEXT_EX *)((BYTE *)context + p->context_size);
--
2.31.1
More information about the wine-devel
mailing list