Paul Gofman : ntdll: Fix alignment mask size in RtlInitializeExtendedContext2().
Alexandre Julliard
julliard at winehq.org
Tue Oct 26 16:19:20 CDT 2021
Module: wine
Branch: master
Commit: e73bb07ff59d0d0b7925df3d642299689275b0a8
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e73bb07ff59d0d0b7925df3d642299689275b0a8
Author: Paul Gofman <pgofman at codeweavers.com>
Date: Tue Oct 26 20:00:27 2021 +0300
ntdll: Fix alignment mask size in RtlInitializeExtendedContext2().
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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);
More information about the wine-cvs
mailing list