mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
GetFileAttributesEx returns 'zero' in case of an error
This commit is contained in:
parent
85be9b907d
commit
61a630fabe
@ -102,7 +102,7 @@ static bool path_stat(const char *path, enum stat_mode mode, int32_t *size)
|
||||
#elif defined(_WIN32)
|
||||
WIN32_FILE_ATTRIBUTE_DATA file_info;
|
||||
DWORD ret = GetFileAttributesEx(path, GetFileExInfoStandard, &file_info);
|
||||
if (ret == INVALID_FILE_ATTRIBUTES)
|
||||
if (ret == 0)
|
||||
return false;
|
||||
#else
|
||||
struct stat buf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user