Author: arty
Date: Wed Sep 10 22:10:37 2008
New Revision: 36129
URL:
http://svn.reactos.org/svn/reactos?rev=36129&view=rev
Log:
reapply the bitmap patch.
Modified:
branches/arty-newcc/lib/rtl/bitmap.c
Modified: branches/arty-newcc/lib/rtl/bitmap.c
URL:
http://svn.reactos.org/svn/reactos/branches/arty-newcc/lib/rtl/bitmap.c?rev…
==============================================================================
--- branches/arty-newcc/lib/rtl/bitmap.c [iso-8859-1] (original)
+++ branches/arty-newcc/lib/rtl/bitmap.c [iso-8859-1] Wed Sep 10 22:10:37 2008
@@ -867,14 +867,14 @@
RtlTestBit(PRTL_BITMAP BitMapHeader,
ULONG BitNumber)
{
- PULONG Ptr;
+ PUCHAR Ptr;
if (BitNumber >= BitMapHeader->SizeOfBitMap)
return FALSE;
- Ptr = (PULONG)BitMapHeader->Buffer + (BitNumber / 32);
-
- return (BOOLEAN)(*Ptr & (1 << (BitNumber % 32)));
+ Ptr = (PUCHAR)BitMapHeader->Buffer + (BitNumber / 8);
+
+ return (BOOLEAN)(*Ptr & (1 << (BitNumber % 8)));
}
/*