ntdll: Clear the DebugInfo field when a shared heap critical section is made global.

This commit is contained in:
Alexandre Julliard 2007-02-06 18:02:16 +01:00
parent 82b7eecf6c
commit 6f2dd76750
1 changed files with 2 additions and 0 deletions

View File

@ -664,6 +664,8 @@ static BOOL HEAP_InitSubHeap( HEAP *heap, LPVOID address, DWORD flags,
NtDuplicateObject( NtCurrentProcess(), sem, NtCurrentProcess(), &sem, 0, 0,
DUP_HANDLE_MAKE_GLOBAL | DUP_HANDLE_SAME_ACCESS | DUP_HANDLE_CLOSE_SOURCE );
heap->critSection.LockSemaphore = sem;
RtlFreeHeap( processHeap, 0, heap->critSection.DebugInfo );
heap->critSection.DebugInfo = NULL;
}
}