oldstable
Andreas Mohr 1999-01-30 13:41:57 +00:00 committed by Alexandre Julliard
parent 7b2242527e
commit ab4a1c1e9f
1 changed files with 4 additions and 3 deletions

View File

@ -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));