From 6b0836e3f157318b00effc1de563da4d4b0d16b8 Mon Sep 17 00:00:00 2001 From: Tim Clem Date: Wed, 31 May 2023 10:21:23 -0700 Subject: [PATCH] loader: Reserve some space for 32-bit top-down allocations on 64-bit. --- loader/preloader.c | 4 ++-- loader/preloader_mac.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/loader/preloader.c b/loader/preloader.c index 72556f09720..3fbee0877d4 100644 --- a/loader/preloader.c +++ b/loader/preloader.c @@ -108,11 +108,11 @@ static struct wine_preload_info preload_info[] = { (void *)0x00000000, 0x00010000 }, /* low 64k */ { (void *)0x00010000, 0x00100000 }, /* DOS area */ { (void *)0x00110000, 0x67ef0000 }, /* low memory area */ - { (void *)0x7f000000, 0x03000000 }, /* top-down allocations + shared heap + virtual heap */ + { (void *)0x7f000000, 0x03000000 }, /* top-down allocations + shared user data + virtual heap */ #else { (void *)0x000000010000, 0x00100000 }, /* DOS area */ { (void *)0x000000110000, 0x67ef0000 }, /* low memory area */ - { (void *)0x00007ff00000, 0x000f0000 }, /* shared user data */ + { (void *)0x00007f000000, 0x00ff0000 }, /* 32-bit top-down allocations + shared user data */ { (void *)0x7ffffe000000, 0x01ff0000 }, /* top-down allocations + virtual heap */ #endif { 0, 0 }, /* PE exe range set with WINEPRELOADRESERVE */ diff --git a/loader/preloader_mac.c b/loader/preloader_mac.c index 8e249a7dc4d..4e91128c575 100644 --- a/loader/preloader_mac.c +++ b/loader/preloader_mac.c @@ -90,11 +90,11 @@ static struct wine_preload_info preload_info[] = { (void *)0x00001000, 0x0000f000 }, /* low 64k */ { (void *)0x00010000, 0x00100000 }, /* DOS area */ { (void *)0x00110000, 0x67ef0000 }, /* low memory area */ - { (void *)0x7f000000, 0x03000000 }, /* top-down allocations + shared heap + virtual heap */ + { (void *)0x7f000000, 0x03000000 }, /* top-down allocations + shared user data + virtual heap */ #else /* __i386__ */ { (void *)0x000000010000, 0x00100000 }, /* DOS area */ { (void *)0x000000110000, 0x67ef0000 }, /* low memory area */ - { (void *)0x00007ff00000, 0x000f0000 }, /* shared user data */ + { (void *)0x00007f000000, 0x00ff0000 }, /* 32-bit top-down allocations + shared user data */ { (void *)0x000100000000, 0x14000000 }, /* WINE_4GB_RESERVE section */ { (void *)0x7ff000000000, 0x01ff0000 }, /* top-down allocations + virtual heap */ #endif /* __i386__ */