Paul Gofman : ntdll: Fill ActiveGroupCount field in _KUSER_SHARED_DATA.
Alexandre Julliard
julliard at winehq.org
Mon May 25 15:44:23 CDT 2020
Module: wine
Branch: master
Commit: ca56ef6739383350f2bff6a8be174e1181ed6e1f
URL: https://source.winehq.org/git/wine.git/?a=commit;h=ca56ef6739383350f2bff6a8be174e1181ed6e1f
Author: Paul Gofman <pgofman at codeweavers.com>
Date: Mon May 25 18:42:02 2020 +0300
ntdll: Fill ActiveGroupCount field in _KUSER_SHARED_DATA.
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/tests/virtual.c | 3 +++
dlls/ntdll/thread.c | 1 +
2 files changed, 4 insertions(+)
diff --git a/dlls/ntdll/tests/virtual.c b/dlls/ntdll/tests/virtual.c
index 59c2224816..beab744178 100644
--- a/dlls/ntdll/tests/virtual.c
+++ b/dlls/ntdll/tests/virtual.c
@@ -531,6 +531,9 @@ static void test_user_shared_data(void)
ok(user_shared_data->ActiveProcessorCount == NtCurrentTeb()->Peb->NumberOfProcessors
|| broken(!user_shared_data->ActiveProcessorCount) /* before Win7 */,
"Got unexpected ActiveProcessorCount %u.\n", user_shared_data->ActiveProcessorCount);
+ ok(user_shared_data->ActiveGroupCount == 1
+ || broken(!user_shared_data->ActiveGroupCount) /* before Win7 */,
+ "Got unexpected ActiveGroupCount %u.\n", user_shared_data->ActiveGroupCount);
}
START_TEST(virtual)
diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c
index 78574d0c5d..3d370f7a98 100644
--- a/dlls/ntdll/thread.c
+++ b/dlls/ntdll/thread.c
@@ -239,6 +239,7 @@ static void fill_user_shared_data( struct _KUSER_SHARED_DATA *data )
break;
}
data->ActiveProcessorCount = NtCurrentTeb()->Peb->NumberOfProcessors;
+ data->ActiveGroupCount = 1;
}
HANDLE user_shared_data_init_done(void)
More information about the wine-cvs
mailing list