Alexandre Julliard : kernel32: Fix the system affinity returned by GetProcessAffinityMask.
Alexandre Julliard
julliard at winehq.org
Thu Jan 17 08:48:33 CST 2008
Module: wine
Branch: master
Commit: 9261c63ab307e82b3f9033f0eef22bffbf2d8bff
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9261c63ab307e82b3f9033f0eef22bffbf2d8bff
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Jan 16 21:01:33 2008 +0100
kernel32: Fix the system affinity returned by GetProcessAffinityMask.
---
dlls/kernel32/process.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 0cfd749..4b4d3cd 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -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;
}
More information about the wine-cvs
mailing list