mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
ntdll: Fix alignment mask size in RtlInitializeExtendedContext2().
Signed-off-by: Paul Gofman <pgofman@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
cd36dd3105
commit
e73bb07ff5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue