Merge pull request #25370 from akien-mga/mono-lowercase-pathext

Mono: Test Windows binaries with lowercase extension
This commit is contained in:
Rémi Verschelde 2019-01-27 18:28:01 +01:00 committed by GitHub
commit 59459ed4b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,7 @@ String path_which(const String &p_name) {
#ifdef WINDOWS_ENABLED
for (int j = 0; j < exts.size(); j++) {
String p2 = p + exts[j];
String p2 = p + exts[j].to_lower(); // lowercase to reduce risk of case mismatch warning
if (FileAccess::exists(p2))
return p2;