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:
parent
15a4a77a74
commit
389b039fe4
|
@ -83,6 +83,9 @@ static BOOL process_attach(void)
|
||||||
/* Create 16-bit task */
|
/* Create 16-bit task */
|
||||||
TASK_CreateMainTask();
|
TASK_CreateMainTask();
|
||||||
|
|
||||||
|
/* Create the shared heap for broken win95 native dlls */
|
||||||
|
HeapCreate( HEAP_SHARED, 0, 0 );
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1074,8 +1074,8 @@ HANDLE WINAPI HeapCreate(
|
||||||
SUBHEAP *subheap;
|
SUBHEAP *subheap;
|
||||||
|
|
||||||
if ( flags & HEAP_SHARED ) {
|
if ( flags & HEAP_SHARED ) {
|
||||||
WARN( "Shared Heap requested, returning system heap.\n" );
|
|
||||||
if (!systemHeap) HEAP_CreateSystemHeap();
|
if (!systemHeap) HEAP_CreateSystemHeap();
|
||||||
|
else WARN( "Shared Heap requested, returning system heap.\n" );
|
||||||
return (HANDLE)systemHeap;
|
return (HANDLE)systemHeap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue