ntdll: Fix memory corruption in RtlSetBits.

This commit is contained in:
Aleksey Bragin 2008-12-26 23:52:25 +03:00 committed by Alexandre Julliard
parent e5ad41bce3
commit a8a97091fe
1 changed files with 2 additions and 1 deletions

View File

@ -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];
}
/*************************************************************************