Commit ec5b68e5 authored by Alexandre Julliard's avatar Alexandre Julliard

Make the system heap critical section global.

parent e66d4219
...@@ -508,7 +508,12 @@ static BOOL HEAP_InitSubHeap( HEAP *heap, LPVOID address, DWORD flags, ...@@ -508,7 +508,12 @@ static BOOL HEAP_InitSubHeap( HEAP *heap, LPVOID address, DWORD flags,
/* Initialize critical section */ /* Initialize critical section */
InitializeCriticalSection( &heap->critSection ); InitializeCriticalSection( &heap->critSection );
if (!SystemHeap) HEAP_SystemLock = &heap->critSection; if (!SystemHeap)
{
HEAP_SystemLock = &heap->critSection;
/* System heap critical section has to be global */
MakeCriticalSectionGlobal( &heap->critSection );
}
} }
/* Create the first free block */ /* Create the first free block */
......
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