Don't set all the bits in the bitmap in XmsAlloc.


svn path=/trunk/; revision=67572
This commit is contained in:
Aleksandar Andrejevic 2015-05-06 02:05:01 +00:00
parent 3f81100a8b
commit 64dcdf9208

View file

@ -242,7 +242,7 @@ static CHAR XmsAlloc(WORD Size, PWORD Handle)
HandleEntry->Address = XMS_ADDRESS + RunStart * XMS_BLOCK_SIZE;
FreeBlocks -= Size;
RtlSetBits(&AllocBitmap, RunStart, RunSize);
RtlSetBits(&AllocBitmap, RunStart, HandleEntry->Size);
return XMS_STATUS_SUCCESS;
}