git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11486
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
PULARGE_INTEGER);
GetDiskFreeSpaceEx_t
PULARGE_INTEGER);
GetDiskFreeSpaceEx_t
- pGetDiskFreeSpaceEx = ::GetProcAddress
+ pGetDiskFreeSpaceEx = (GetDiskFreeSpaceEx_t)::GetProcAddress
(
::GetModuleHandle(_T("kernel32.dll")),
#if wxUSE_UNICODE
(
::GetModuleHandle(_T("kernel32.dll")),
#if wxUSE_UNICODE
+ // 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,
DWORD lSectorsPerCluster,
lBytesPerSector,
lNumberOfFreeClusters,
- // there's a problem with drives larger than 2GB on non Win32!!
- // let's calculate it, nevertheless....
wxLongLong lBytesPerCluster = lSectorsPerCluster;
lBytesPerCluster *= lBytesPerSector;
wxLongLong lBytesPerCluster = lSectorsPerCluster;
lBytesPerCluster *= lBytesPerSector;