[RFC PATCH 10/11] ntdll: Enable LFH for process heap.

Rémi Bernon rbernon at codeweavers.com
Wed May 6 07:10:02 CDT 2020


---
 dlls/ntdll/loader.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
index a5b86f289f47..d9ede19e4ea2 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -4485,6 +4485,7 @@ void __wine_process_init(void)
     INITIAL_TEB stack;
     BOOL suspend;
     SIZE_T info_size;
+    ULONG hci = HEAP_LFH;
     TEB *teb = thread_init();
     PEB *peb = teb->Peb;
 
@@ -4494,6 +4495,7 @@ void __wine_process_init(void)
 
     peb->ProcessHeap = RtlCreateHeap( HEAP_GROWABLE, NULL, 0, 0, NULL, NULL );
     peb->LoaderLock = &loader_section;
+    RtlSetHeapInformation( peb->ProcessHeap, HeapCompatibilityInformation, &hci, sizeof(hci) );
 
     init_unix_codepage();
     init_directories();
-- 
2.26.1




More information about the wine-devel mailing list