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>
(cherry picked from commit eca2bfd071
)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
parent
dc85e95017
commit
0dc595d4e1
|
@ -750,7 +750,7 @@ DWORD WINAPI GetFreeSpace16( UINT16 wFlags )
|
|||
{
|
||||
MEMORYSTATUS ms;
|
||||
GlobalMemoryStatus( &ms );
|
||||
return ms.dwAvailVirtual;
|
||||
return min( ms.dwAvailVirtual, MAXLONG );
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Reference in New Issue