Commit eca2bfd0 authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

krnl386.exe: Cap GetFreeSpace value to 2GB.

parent b9ceaa6f
......@@ -750,7 +750,7 @@ DWORD WINAPI GetFreeSpace16( UINT16 wFlags )
{
MEMORYSTATUS ms;
GlobalMemoryStatus( &ms );
return ms.dwAvailVirtual;
return min( ms.dwAvailVirtual, MAXLONG );
}
/***********************************************************************
......
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