mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
Merged in Glorf/ryzomcore/fix_freespace_check (pull request #155)
Fix issue #302 - incorrect freespace on 32 bits system Approved-by: Cédric OCHS <kervala@gmail.com> --HG-- branch : develop
This commit is contained in:
commit
1fec1425da
1 changed files with 1 additions and 1 deletions
|
@ -1390,7 +1390,7 @@ uint64 CSystemInfo::availableHDSpace (const string &filename)
|
|||
struct statfs stfs;
|
||||
if (::statfs(path.c_str(), &stfs) != 0) return 0;
|
||||
|
||||
return (uint64)(stfs.f_bavail * stfs.f_bsize);
|
||||
return (uint64)stfs.f_bavail * (uint64)stfs.f_bsize;
|
||||
#else
|
||||
ULARGE_INTEGER freeSpace = {0};
|
||||
BOOL bRes = ::GetDiskFreeSpaceExW(utf8ToWide(path), &freeSpace, NULL, NULL);
|
||||
|
|
Loading…
Reference in a new issue