PULARGE_INTEGER);
GetDiskFreeSpaceEx_t
- pGetDiskFreeSpaceEx = ::GetProcAddress
+ pGetDiskFreeSpaceEx = (GetDiskFreeSpaceEx_t)::GetProcAddress
(
::GetModuleHandle(_T("kernel32.dll")),
#if wxUSE_UNICODE
else
#endif // Win32
{
+ // there's a problem with drives larger than 2GB, GetDiskFreeSpaceEx()
+ // should be used instead - but if it's not available, fall back on
+ // GetDiskFreeSpace() nevertheless...
+
DWORD lSectorsPerCluster,
lBytesPerSector,
lNumberOfFreeClusters,
return FALSE;
}
- // there's a problem with drives larger than 2GB on non Win32!!
- // let's calculate it, nevertheless....
wxLongLong lBytesPerCluster = lSectorsPerCluster;
lBytesPerCluster *= lBytesPerSector;