Commit 9261c63a authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Fix the system affinity returned by GetProcessAffinityMask.

parent aaf02c6f
......@@ -2719,8 +2719,7 @@ BOOL WINAPI GetProcessAffinityMask( HANDLE hProcess,
return FALSE;
}
if (lpProcessAffinityMask) *lpProcessAffinityMask = pbi.AffinityMask;
/* FIXME */
if (lpSystemAffinityMask) *lpSystemAffinityMask = 1;
if (lpSystemAffinityMask) *lpSystemAffinityMask = (1 << NtCurrentTeb()->Peb->NumberOfProcessors) - 1;
return TRUE;
}
......
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