Author: aandrejevic
Date: Wed May 6 02:05:01 2015
New Revision: 67572
URL:
http://svn.reactos.org/svn/reactos?rev=67572&view=rev
Log:
[NTVDM]
Don't set all the bits in the bitmap in XmsAlloc.
Modified:
trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/himem.c
Modified: trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/himem.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/mvdm/ntvdm/dos/…
==============================================================================
--- trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/himem.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/himem.c [iso-8859-1] Wed May 6
02:05:01 2015
@@ -242,7 +242,7 @@
HandleEntry->Address = XMS_ADDRESS + RunStart * XMS_BLOCK_SIZE;
FreeBlocks -= Size;
- RtlSetBits(&AllocBitmap, RunStart, RunSize);
+ RtlSetBits(&AllocBitmap, RunStart, HandleEntry->Size);
return XMS_STATUS_SUCCESS;
}