mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-25 06:40:58 -04:00
fixed compile on Windows
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3224 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c1ae6c9773
commit
918decfd0d
4 changed files with 11 additions and 9 deletions
|
@ -64,7 +64,7 @@ bool RsDiscSpace::crossSystemDiskStats(const char *file, uint64_t& free_blocks,
|
|||
|
||||
char *pszFullPath = _fullpath (NULL, file, 0);
|
||||
if (pszFullPath == 0) {
|
||||
std::cerr << "Size estimate failed for drive (_fullpath) " << szDrive << std::endl ;
|
||||
std::cerr << "Size estimate failed for drive (_fullpath) " << std::endl ;
|
||||
return false;
|
||||
}
|
||||
_splitpath (pszFullPath, szDrive, NULL, NULL, NULL);
|
||||
|
@ -72,7 +72,7 @@ bool RsDiscSpace::crossSystemDiskStats(const char *file, uint64_t& free_blocks,
|
|||
#endif
|
||||
szDrive[3] = 0;
|
||||
|
||||
if (!GetDiskFreeSpace (szDrive, &dwSectorPerCluster, &dwBytesPerSector, &dwFreeClusters, &dwTotalClusters))
|
||||
if (!GetDiskFreeSpaceA (szDrive, &dwSectorPerCluster, &dwBytesPerSector, &dwFreeClusters, &dwTotalClusters))
|
||||
{
|
||||
std::cerr << "Size estimate failed for drive " << szDrive << std::endl ;
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue