Attempt to fix Win32 port - path_stat/path_get_size

This commit is contained in:
twinaphex 2015-10-01 07:24:12 +02:00
parent a5a16faef4
commit 4c27cd6b5c

View File

@ -100,9 +100,12 @@ static bool path_stat(const char *path, enum stat_mode mode, int32_t *size)
if (cellFsStat(path, &buf) < 0)
return false;
#elif defined(_WIN32)
struct stat buf;
DWORD ret = GetFileAttributes(path);
if (ret == INVALID_FILE_ATTRIBUTES)
return false;
if (stat(path, &buf) < 0)
return false;
#else
struct stat buf;
if (stat(path, &buf) < 0)