mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-09 19:10:38 +00:00
parent
df045b92ea
commit
56f982fa7f
@ -247,7 +247,7 @@ bool FiosGetDiskFreeSpace(const char *path, uint64 *tot)
|
|||||||
|
|
||||||
ULARGE_INTEGER bytes_free;
|
ULARGE_INTEGER bytes_free;
|
||||||
bool retval = GetDiskFreeSpaceEx(OTTD2FS(path).c_str(), &bytes_free, nullptr, nullptr);
|
bool retval = GetDiskFreeSpaceEx(OTTD2FS(path).c_str(), &bytes_free, nullptr, nullptr);
|
||||||
if (retval) *tot = bytes_free.QuadPart;
|
if (retval && tot != nullptr) *tot = bytes_free.QuadPart;
|
||||||
|
|
||||||
SetErrorMode(sem); // reset previous setting
|
SetErrorMode(sem); // reset previous setting
|
||||||
return retval;
|
return retval;
|
||||||
|
Loading…
Reference in New Issue
Block a user