Commit 8ddff3f5 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

kernel32: Reimplement GetMaximumProcessorGroupCount on top of GetLogicalProcessorInformationEx.

parent 04114db9
...@@ -702,8 +702,24 @@ DWORD WINAPI GetMaximumProcessorCount(WORD group) ...@@ -702,8 +702,24 @@ DWORD WINAPI GetMaximumProcessorCount(WORD group)
*/ */
WORD WINAPI GetMaximumProcessorGroupCount(void) WORD WINAPI GetMaximumProcessorGroupCount(void)
{ {
FIXME("semi-stub, always returning 1\n"); WORD groups;
return 1; 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;
} }
/*********************************************************************** /***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment