[*] Break only when index == len

This commit is contained in:
Reece Wilson 2021-10-16 00:55:27 +01:00
parent d28a0aa291
commit dde580ddf9

View File

@ -438,7 +438,7 @@ namespace Aurora::HWInfo
auto mask = sysinfo[i].ProcessorMask;
unsigned long offset {}, tmp;
while (offset != (sizeof(offset) * 8 - 1))
while (offset != (sizeof(offset) * 8))
{
// Count the index to a 1
if (BitScanForward(&tmp, mask >> offset) == 0) break; // mask was zero, end of scan