forked from airidosas252/Wine-Builds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
address-space-proot.patch
31 lines (30 loc) · 1.5 KB
/
address-space-proot.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff --git a/dlls/ntdll/unix/virtual.c b/dlls/ntdll/unix/virtual.c
index 02c0bebe879..84a12cad4c6 100644
--- a/dlls/ntdll/unix/virtual.c
+++ b/dlls/ntdll/unix/virtual.c
@@ -163,9 +163,9 @@ static void *address_space_start = (void *)0x110000; /* keep DOS area clear */
static void *address_space_start = (void *)0x10000;
#endif
#ifdef _WIN64
-static void *address_space_limit = (void *)0x7fffffff0000; /* top of the total available address space */
-static void *user_space_limit = (void *)0x7fffffff0000; /* top of the user address space */
-static void *working_set_limit = (void *)0x7fffffff0000; /* top of the current working set */
+static void *address_space_limit = (void *)0x7fffff0000; /* top of the total available address space */
+static void *user_space_limit = (void *)0x7fffff0000; /* top of the user address space */
+static void *working_set_limit = (void *)0x7fffff0000; /* top of the current working set */
#else
static void *address_space_limit = (void *)0xc0000000;
static void *user_space_limit = (void *)0x7fff0000;
diff --git a/loader/preloader.c b/loader/preloader.c
index d0551bae63a..9baa5e090f9 100644
--- a/loader/preloader.c
+++ b/loader/preloader.c
@@ -1447,7 +1447,7 @@ void* wld_start( void **stack )
{
/* don't warn for low 64k */
if (preload_info[i].addr >= (void *)0x10000
-#ifdef __aarch64__
+#if 1
&& preload_info[i].addr < (void *)0x7fffffffff /* ARM64 address space might end here*/
#endif
)