[*] Break only when index == len
This commit is contained in:
parent
d28a0aa291
commit
dde580ddf9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user