From d0a45aafd3f92f3eda84845928e0fd986958265d Mon Sep 17 00:00:00 2001 From: sanikoyes Date: Fri, 19 Sep 2014 12:22:32 +0800 Subject: Fix file_exists --- drivers/windows/dir_access_windows.cpp | 4 ++-- 1 file 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); -- cgit v1.2.3