Change how errors from FAT32 GetDiskFreeEx() functions are detected when getting volume information in DOS.

This commit is contained in:
2021-04-06 04:16:11 +01:00
parent e743059ad2
commit 8dd1a2a02d

View File

@@ -56,7 +56,7 @@ void GetVolumeInfo(const char* path, size_t* clusterSize)
if(rc) if(rc)
{ {
if(errno == ENOSYS) if(errno == ENOSYS || errno == EINVAL)
{ {
#ifdef __TURBOC__ #ifdef __TURBOC__
getdfree(driveNo, &oldFreeSpace); getdfree(driveNo, &oldFreeSpace);