Alexandre Julliard : ntdll: Clear the DebugInfo field when a shared heap critical section is made global .
Module: wine Branch: master Commit: 6f2dd76750a57c7e66f7c97ad6af49f31f6e177f URL: http://source.winehq.org/git/wine.git/?a=commit;h=6f2dd76750a57c7e66f7c97ad6... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Feb 6 18:02:16 2007 +0100 ntdll: Clear the DebugInfo field when a shared heap critical section is made global. --- dlls/ntdll/heap.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/ntdll/heap.c b/dlls/ntdll/heap.c index 2f52aec..7079054 100644 --- a/dlls/ntdll/heap.c +++ b/dlls/ntdll/heap.c @@ -664,6 +664,8 @@ static BOOL HEAP_InitSubHeap( HEAP *heap 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; } }
participants (1)
-
Alexandre Julliard