diff options
author | sanikoyes <sanikoyes@163.com> | 2014-09-19 12:22:32 +0800 |
---|---|---|
committer | sanikoyes <sanikoyes@163.com> | 2014-09-19 12:22:32 +0800 |
commit | d0a45aafd3f92f3eda84845928e0fd986958265d (patch) | |
tree | c150e2d80bff52e56bdedc624142ada93262a217 /drivers/windows | |
parent | 7d6b160a444079fd6856b648ed077bf698b3b70c (diff) |
Fix file_exists
Diffstat (limited to 'drivers/windows')
-rw-r--r-- | drivers/windows/dir_access_windows.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/windows/dir_access_windows.cpp b/drivers/windows/dir_access_windows.cpp index cac04b68c3..aefec59ce0 100644 --- a/drivers/windows/dir_access_windows.cpp +++ b/drivers/windows/dir_access_windows.cpp @@ -315,7 +315,7 @@ bool DirAccessWindows::file_exists(String p_file) { DWORD fileAttr; fileAttr = GetFileAttributesExW(p_file.c_str(), GetFileExInfoStandard, &fileInfo); - if (0xFFFFFFFF == fileAttr) + if (0 == fileAttr) return false; return !(fileAttr&FILE_ATTRIBUTE_DIRECTORY); @@ -324,7 +324,7 @@ bool DirAccessWindows::file_exists(String p_file) { DWORD fileAttr; fileAttr = GetFileAttributesExA(p_file.ascii().get_data(), GetFileExInfoStandard, &fileInfo); - if (0xFFFFFFFF == fileAttr) + if (0 == fileAttr) return false; return !(fileAttr&FILE_ATTRIBUTE_DIRECTORY); |