kernel32: Reimplement GetMaximumProcessorGroupCount on top of GetLogicalProcessorInformationEx.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
04114db90b
commit
8ddff3f51f
|
@ -702,8 +702,24 @@ DWORD WINAPI GetMaximumProcessorCount(WORD group)
|
|||
*/
|
||||
WORD WINAPI GetMaximumProcessorGroupCount(void)
|
||||
{
|
||||
FIXME("semi-stub, always returning 1\n");
|
||||
return 1;
|
||||
WORD groups;
|
||||
DWORD size = 0;
|
||||
SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX *info;
|
||||
|
||||
TRACE("()\n");
|
||||
|
||||
if (!GetLogicalProcessorInformationEx(RelationGroup, NULL, &size)) return 0;
|
||||
if (!(info = HeapAlloc(GetProcessHeap(), 0, size))) return 0;
|
||||
if (!GetLogicalProcessorInformationEx(RelationGroup, info, &size))
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, info);
|
||||
return 0;
|
||||
}
|
||||
|
||||
groups = info->Group.MaximumGroupCount;
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, info);
|
||||
return groups;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Reference in New Issue