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()?