Commit 4d582411 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

ntdll: Don't call possibly deadly DbgUiGetThreadDebugObject.

parent 5590ea4a
...@@ -3215,7 +3215,8 @@ void WINAPI LdrShutdownThread(void) ...@@ -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();
} }
......
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