diff options
Diffstat (limited to 'drivers/windows/file_access_windows.cpp')
| -rw-r--r-- | drivers/windows/file_access_windows.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/drivers/windows/file_access_windows.cpp b/drivers/windows/file_access_windows.cpp index 095d936c78..4e8b327ffe 100644 --- a/drivers/windows/file_access_windows.cpp +++ b/drivers/windows/file_access_windows.cpp @@ -95,8 +95,8 @@ Error FileAccessWindows::open_internal(const String &p_path, int p_mode_flags) {  	// platforms).  	if (p_mode_flags == READ) {  		WIN32_FIND_DATAW d; -		HANDLE f = FindFirstFileW((LPCWSTR)(path.utf16().get_data()), &d); -		if (f != INVALID_HANDLE_VALUE) { +		HANDLE fnd = FindFirstFileW((LPCWSTR)(path.utf16().get_data()), &d); +		if (fnd != INVALID_HANDLE_VALUE) {  			String fname = String::utf16((const char16_t *)(d.cFileName));  			if (!fname.is_empty()) {  				String base_file = path.get_file(); @@ -104,7 +104,7 @@ Error FileAccessWindows::open_internal(const String &p_path, int p_mode_flags) {  					WARN_PRINT("Case mismatch opening requested file '" + base_file + "', stored as '" + fname + "' in the filesystem. This file will not open when exported to other case-sensitive platforms.");  				}  			} -			FindClose(f); +			FindClose(fnd);  		}  	}  #endif |