Commit ab4a1c1e authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

XMS fix.

parent 7b224252
......@@ -53,10 +53,11 @@ void WINAPI XMS_Handler( CONTEXT *context )
TRACE(int31, "query free extended memory\n");
mmi.dwSize = sizeof(mmi);
MemManInfo(&mmi);
AX_reg(context) = mmi.dwFreePages>>10;
DX_reg(context) = mmi.dwLargestFreeBlock>>10;
break;
AX_reg(context) = mmi.dwLargestFreeBlock >> 10;
DX_reg(context) = (mmi.dwFreePages * VIRTUAL_GetPageSize()) >> 10;
TRACE(int31, "returning largest %dK, total %dK\n", AX_reg(context), DX_reg(context));
}
break;
case 0x09: /* Allocate Extended Memory Block */
TRACE(int31, "allocate extended memory block (%dK)\n",
DX_reg(context));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment