[PATCH v5 3/3] ntdll: Reduce USD section size to 0x1000.

Rémi Bernon rbernon at codeweavers.com
Wed May 6 04:05:42 CDT 2020


Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
 dlls/ntdll/thread.c | 2 +-
 server/mapping.c    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c
index 6e5428bf0f06..7566dbb8fc7a 100644
--- a/dlls/ntdll/thread.c
+++ b/dlls/ntdll/thread.c
@@ -236,7 +236,7 @@ TEB *thread_init(void)
     /* reserve space for shared user data */
 
     addr = (void *)0x7ffe0000;
-    size = 0x10000;
+    size = 0x1000;
     status = NtAllocateVirtualMemory( NtCurrentProcess(), &addr, 0, &size,
                                       MEM_RESERVE|MEM_COMMIT, PAGE_READWRITE );
     if (status)
diff --git a/server/mapping.c b/server/mapping.c
index 8cd2260feae1..bf34fa52f37d 100644
--- a/server/mapping.c
+++ b/server/mapping.c
@@ -992,7 +992,7 @@ static void kusd_set_current_time( void *private )
 obj_handle_t get_usd_handle( const void *usd_init, data_size_t usd_size )
 {
     /* keep it the same as user_shared_data_size in ntdll */
-    size_t size = 0x10000;
+    size_t size = 0x1000;
     struct fd *fd;
 
     if (sizeof(*kusd) != usd_size)
-- 
2.26.1




More information about the wine-devel mailing list