kernel32: Fix the system affinity returned by GetProcessAffinityMask.

This commit is contained in:
Alexandre Julliard 2008-01-16 21:01:33 +01:00
parent aaf02c6f4a
commit 9261c63ab3
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}