diff options
-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); |