summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2014-09-19 11:25:05 -0300
committerJuan Linietsky <reduzio@gmail.com>2014-09-19 11:25:05 -0300
commit05d5253f8a13cd603f0ee3c647af26b46493ae0e (patch)
tree5a60e36362fb93b8f60c0c22fbca598afaa97100
parenta6a39f18e0a708e091b8591c21fa95ca22b5ca1f (diff)
parentd0a45aafd3f92f3eda84845928e0fd986958265d (diff)
Merge pull request #708 from sanikoyes/Pr-fix-file-exists
Fix file_exists
-rw-r--r--drivers/windows/dir_access_windows.cpp4
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);