Make the system heap critical section global.
This commit is contained in:
parent
e66d4219ec
commit
ec5b68e5f0
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue