April 29, 2026
4:46 a.m.
On Wed Apr 29 09:17:23 2026 +0000, Alexandre Julliard wrote:
init_options() doesn't require a TEB. It calls `NtCurrentTeb()`.
`dlls/ntdll/thread.c` ``` static void init_options(void) { unsigned int offset = page_size * (sizeof(void *) / 4); debug_options = (struct __wine_debug_channel *)((char *)NtCurrentTeb()->Peb + offset); while (debug_options[nb_debug_options].name[0]) nb_debug_options++; } ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10710#note_138162