ntdll: Don't call possibly deadly DbgUiGetThreadDebugObject.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5590ea4a6e
commit
4d5824112e
|
@ -3215,7 +3215,8 @@ void WINAPI LdrShutdownThread(void)
|
||||||
RtlReleasePebLock();
|
RtlReleasePebLock();
|
||||||
|
|
||||||
RtlLeaveCriticalSection( &loader_section );
|
RtlLeaveCriticalSection( &loader_section );
|
||||||
if (DbgUiGetThreadDebugObject()) NtClose( DbgUiGetThreadDebugObject() );
|
/* don't call DbgUiGetThreadDebugObject as some apps hook it and terminate if called */
|
||||||
|
if (NtCurrentTeb()->DbgSsReserved[1]) NtClose( NtCurrentTeb()->DbgSsReserved[1] );
|
||||||
RtlFreeThreadActivationContextStack();
|
RtlFreeThreadActivationContextStack();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue