This repository was archived by the owner on Mar 26, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtermux-wine-fix2.patch
More file actions
41 lines (40 loc) · 2.01 KB
/
Copy pathtermux-wine-fix2.patch
File metadata and controls
41 lines (40 loc) · 2.01 KB
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
32
33
34
35
36
37
38
39
40
41
diff -urN wine/dlls/ntdll/unix/server.c b/dlls/ntdll/unix/server.c
--- wine/dlls/ntdll/unix/server.c 2025-10-23 00:20:16.156148641 +0800
+++ b/dlls/ntdll/unix/server.c 2025-10-23 18:21:12.023051240 +0800
@@ -1351,7 +1351,8 @@
{
mkdir( "drive_c", 0777 );
symlink( "../drive_c", "dosdevices/c:" );
- symlink( "/", "dosdevices/z:" );
+ symlink( "/sdcard", "dosdevices/d:" );
+ symlink( "/data/data/com.termux/files", "dosdevices/z:" );
}
else if (errno != EEXIST) fatal_perror( "cannot create %s/dosdevices", config_dir );
diff -urN wine/dlls/ntdll/unix/virtual.c b/dlls/ntdll/unix/virtual.c
--- wine/dlls/ntdll/unix/virtual.c 2025-10-23 00:20:16.172148853 +0800
+++ b/dlls/ntdll/unix/virtual.c 2025-10-23 18:23:34.472823070 +0800
@@ -188,9 +188,9 @@
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 -urN wine/loader/preloader.c b/loader/preloader.c
--- wine/loader/preloader.c 2025-10-23 00:20:21.709222352 +0800
+++ b/loader/preloader.c 2025-10-23 18:24:32.057544786 +0800
@@ -1449,7 +1449,7 @@
{
/* 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
)