Commit 16592ca9 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ntdll: Set the process detaching flag before calling FLS callbacks.

So that we will not deadlock trying to acquire fls_section. Signed-off-by: 's avatarZebediah Figura <z.figura12@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 32f5dfde
......@@ -3182,12 +3182,14 @@ fail:
*/
void WINAPI LdrShutdownProcess(void)
{
BOOL detaching = process_detaching;
TRACE("()\n");
if (!process_detaching)
process_detaching = TRUE;
if (!detaching)
RtlProcessFlsData( NtCurrentTeb()->FlsSlots, 1 );
process_detaching = TRUE;
process_detach();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment