We need to create the system heap at startup even though we don't use

it, since some Win95 native dlls depend on that.
This commit is contained in:
Alexandre Julliard 2001-03-04 01:06:07 +00:00
parent 15a4a77a74
commit 389b039fe4
2 changed files with 4 additions and 1 deletions

View File

@ -83,6 +83,9 @@ static BOOL process_attach(void)
/* Create 16-bit task */
TASK_CreateMainTask();
/* Create the shared heap for broken win95 native dlls */
HeapCreate( HEAP_SHARED, 0, 0 );
return TRUE;
}

View File

@ -1074,8 +1074,8 @@ HANDLE WINAPI HeapCreate(
SUBHEAP *subheap;
if ( flags & HEAP_SHARED ) {
WARN( "Shared Heap requested, returning system heap.\n" );
if (!systemHeap) HEAP_CreateSystemHeap();
else WARN( "Shared Heap requested, returning system heap.\n" );
return (HANDLE)systemHeap;
}