mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
- Don't try to set remaining bits if there are none. Fixes memory
corruption. Patch sent to Wine: http://www.winehq.org/pipermail/wine-patches/2008-December/066716.html svn path=/trunk/; revision=38359
This commit is contained in:
parent
7738237964
commit
d3a5bca37f
1 changed files with 2 additions and 1 deletions
|
@ -851,7 +851,8 @@ RtlSetBits(PRTL_BITMAP BitMapHeader,
|
|||
}
|
||||
|
||||
/* Set remaining bits, if any */
|
||||
*lpOut |= NTDLL_maskBits[NumberToSet & 0x7];
|
||||
if (NumberToSet & 0x7)
|
||||
*lpOut |= NTDLL_maskBits[NumberToSet & 0x7];
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue