Make the system heap critical section global.

This commit is contained in:
Alexandre Julliard 1999-03-14 16:20:13 +00:00
parent e66d4219ec
commit ec5b68e5f0

View file

@ -508,7 +508,12 @@ static BOOL HEAP_InitSubHeap( HEAP *heap, LPVOID address, DWORD flags,
/* Initialize critical section */
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 */