Paul Gofman : ntdll: Fix SMT CPU flag reporting.
Module: wine Branch: master Commit: 03cebb22d8bb882a057acfaf5d30e991dcc03544 URL: https://source.winehq.org/git/wine.git/?a=commit;h=03cebb22d8bb882a057acfaf5... Author: Paul Gofman <pgofman(a)codeweavers.com> Date: Fri Nov 20 14:17:40 2020 +0300 ntdll: Fix SMT CPU flag reporting. Signed-off-by: Paul Gofman <pgofman(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ntdll/unix/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/unix/system.c b/dlls/ntdll/unix/system.c index faa7532cfef..8add2cabd4f 100644 --- a/dlls/ntdll/unix/system.c +++ b/dlls/ntdll/unix/system.c @@ -538,8 +538,8 @@ static DWORD count_bits(ULONG_PTR mask) DWORD count = 0; while (mask > 0) { + if (mask & 1) ++count; mask >>= 1; - count++; } return count; }
participants (1)
-
Alexandre Julliard