ntdll: Fix memory corruption in RtlSetBits.
This commit is contained in:
parent
e5ad41bce3
commit
a8a97091fe
|
@ -170,7 +170,8 @@ VOID WINAPI RtlSetBits(PRTL_BITMAP lpBits, ULONG ulStart, ULONG ulCount)
|
|||
}
|
||||
|
||||
/* Set remaining bits, if any */
|
||||
*lpOut |= NTDLL_maskBits[ulCount & 0x7];
|
||||
if (ulCount & 0x7)
|
||||
*lpOut |= NTDLL_maskBits[ulCount & 0x7];
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
|
|
Loading…
Reference in New Issue