1
0
Fork 0

removed clear mapping on free xms

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@900
This commit is contained in:
Ulf Wohlers 2003-04-10 10:35:50 +00:00
parent 517cde1b3c
commit 55b6b319eb

View file

@ -169,8 +169,6 @@ Bitu XMS_FreeMemory(Bitu handle)
if (!handle || (handle>=XMS_HANDLES) || !xms_handles[handle].active || !xms_handles[handle].allocated ) {
return XMS_INVALID_HANDLE;
}
/* Remove the mapping to the memory */
MEM_ClearMapping(PAGE_COUNT(xms_handles[handle].phys),PAGE_COUNT(xms_handles[handle].size*1024));
/* Free the memory in the block and merge the blocks previous and next block */
Bit16u prev=xms_handles[handle].prev;
Bit16u next=xms_handles[handle].next;