Rémi Bernon : ntdll: Reduce USD section size to 0x1000.
Alexandre Julliard
julliard at winehq.org
Tue May 12 16:59:27 CDT 2020
Module: wine
Branch: master
Commit: 16e32e3b771c1f29c3ec8ea57318cfbc5e3d15f1
URL: https://source.winehq.org/git/wine.git/?a=commit;h=16e32e3b771c1f29c3ec8ea57318cfbc5e3d15f1
Author: Rémi Bernon <rbernon at codeweavers.com>
Date: Mon May 11 13:12:49 2020 +0200
ntdll: Reduce USD section size to 0x1000.
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/tests/info.c | 1 -
dlls/ntdll/thread.c | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/ntdll/tests/info.c b/dlls/ntdll/tests/info.c
index 5e9aa1343c..7a641f8b84 100644
--- a/dlls/ntdll/tests/info.c
+++ b/dlls/ntdll/tests/info.c
@@ -2266,7 +2266,6 @@ static void test_queryvirtualmemory(void)
ok(mbi.State == MEM_COMMIT, "mbi.State is 0x%x, expected 0x%X\n", mbi.State, MEM_COMMIT);
ok(mbi.Protect == PAGE_READONLY, "mbi.Protect is 0x%x\n", mbi.Protect);
ok(mbi.Type == MEM_PRIVATE, "mbi.Type is 0x%x, expected 0x%x\n", mbi.Type, MEM_PRIVATE);
- todo_wine
ok(mbi.RegionSize == 0x1000, "mbi.RegionSize is 0x%lx, expected 0x%x\n", mbi.RegionSize, 0x1000);
/* check error code when addr is higher than working set limit */
diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c
index 78fe4e4fdf..0fc8aa9e92 100644
--- a/dlls/ntdll/thread.c
+++ b/dlls/ntdll/thread.c
@@ -294,7 +294,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)
More information about the wine-cvs
mailing list