krnl386.exe: Cap GetFreeSpace value to 2GB.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46962 Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b9ceaa6fed
commit
eca2bfd071
|
@ -750,7 +750,7 @@ DWORD WINAPI GetFreeSpace16( UINT16 wFlags )
|
||||||
{
|
{
|
||||||
MEMORYSTATUS ms;
|
MEMORYSTATUS ms;
|
||||||
GlobalMemoryStatus( &ms );
|
GlobalMemoryStatus( &ms );
|
||||||
return ms.dwAvailVirtual;
|
return min( ms.dwAvailVirtual, MAXLONG );
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
|
Loading…
Reference in New Issue