Handle missing file properly when checking for case mismatch
This was causing false alarms to be randomly reported on Windows for files that didn't exist.
This commit is contained in:
parent
94f00eb6c5
commit
90b6062ebb
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ Error FileAccessWindows::_open(const String &p_path, int p_mode_flags) {
|
||||||
if (p_mode_flags == READ) {
|
if (p_mode_flags == READ) {
|
||||||
WIN32_FIND_DATAW d;
|
WIN32_FIND_DATAW d;
|
||||||
HANDLE f = FindFirstFileW(path.c_str(), &d);
|
HANDLE f = FindFirstFileW(path.c_str(), &d);
|
||||||
if (f) {
|
if (f != INVALID_HANDLE_VALUE) {
|
||||||
String fname = d.cFileName;
|
String fname = d.cFileName;
|
||||||
if (fname != String()) {
|
if (fname != String()) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue