17 Apr
2023
17 Apr
'23
9:49 p.m.
Zebediah Figura (@zfigura) commented about dlls/kernelbase/thread.c:
+ + if (src != head) + { + dest->Flink = head; + dest->Blink = tail; + head->Blink = dest; + tail->Flink = dest; + } + else InitializeListHead( dest ); +} + +static void relocate_thread_actctx_stack( ACTIVATION_CONTEXT_STACK *dest ) +{ + ACTIVATION_CONTEXT_STACK *src = NtCurrentTeb()->ActivationContextStackPointer; + + if (dest != src) I must be missing something, when can dest == src? Aren't we always moving from the fiber data to the TEB in ConvertFiberToThread()?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2435#note_30302