[PATCH] ntdll: Fix SMT CPU flag reporting.
Paul Gofman
pgofman at codeweavers.com
Fri Nov 20 05:17:40 CST 2020
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
---
dlls/ntdll/unix/system.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/ntdll/unix/system.c b/dlls/ntdll/unix/system.c
index c8d0340f76f..dc6f4d27a8b 100644
--- a/dlls/ntdll/unix/system.c
+++ b/dlls/ntdll/unix/system.c
@@ -538,8 +538,9 @@ static DWORD count_bits(ULONG_PTR mask)
DWORD count = 0;
while (mask > 0)
{
+ if (mask & 1)
+ ++count;
mask >>= 1;
- count++;
}
return count;
}
--
2.28.0
More information about the wine-devel
mailing list