- 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:
Aleksey Bragin 2008-12-26 20:21:52 +00:00
parent 7738237964
commit d3a5bca37f

View file

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