Module: wine Branch: master Commit: 6e82d33eb70d88a72eed03c2fc99ff4402a50a54 URL: https://gitlab.winehq.org/wine/wine/-/commit/6e82d33eb70d88a72eed03c2fc99ff4...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Jun 20 16:23:25 2024 +0200
ntdll: Don't set the TEB ExceptionList to -1 on 64-bit.
The tests show that it should be zero.
---
dlls/ntdll/unix/virtual.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/unix/virtual.c b/dlls/ntdll/unix/virtual.c index 4b23d9954df..3981905bcd3 100644 --- a/dlls/ntdll/unix/virtual.c +++ b/dlls/ntdll/unix/virtual.c @@ -3621,6 +3621,7 @@ static TEB *init_teb( void *ptr, BOOL is_wow ) if (is_wow) teb64->WowTebOffset = teb_offset; #else teb = (TEB *)teb32; + teb32->Tib.ExceptionList = ~0u; teb64->Peb = PtrToUlong( (char *)peb - page_size ); teb64->Tib.Self = PtrToUlong( teb64 ); teb64->Tib.ExceptionList = PtrToUlong( teb32 ); @@ -3639,7 +3640,6 @@ static TEB *init_teb( void *ptr, BOOL is_wow ) #endif teb->Peb = peb; teb->Tib.Self = &teb->Tib; - teb->Tib.ExceptionList = (void *)~0ul; teb->Tib.StackBase = (void *)~0ul; teb->ActivationContextStackPointer = &teb->ActivationContextStack; InitializeListHead( &teb->ActivationContextStack.FrameListCache );