Paul Gofman : ntdll: Fix SMT CPU flag reporting.
Alexandre Julliard
julliard at winehq.org
Fri Nov 20 14:54:32 CST 2020
Module: wine
Branch: master
Commit: 03cebb22d8bb882a057acfaf5d30e991dcc03544
URL: https://source.winehq.org/git/wine.git/?a=commit;h=03cebb22d8bb882a057acfaf5d30e991dcc03544
Author: Paul Gofman <pgofman at codeweavers.com>
Date: Fri Nov 20 14:17:40 2020 +0300
ntdll: Fix SMT CPU flag reporting.
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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;
}
More information about the wine-cvs
mailing list