diff --git a/compat/mingw.c b/compat/mingw.c index 4ed77562ddc527..772a8c86c9ddc2 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -2916,7 +2916,9 @@ int mingw_rename(const char *pold, const char *pnew) * current system doesn't support FileRenameInfoEx. Keep us * from using it in future calls and retry. */ - if (gle == ERROR_INVALID_PARAMETER || gle == ERROR_NOT_SUPPORTED) { + if (gle == ERROR_INVALID_PARAMETER || + gle == ERROR_NOT_SUPPORTED || + gle == ERROR_INVALID_FUNCTION) { supports_file_rename_info_ex = 0; goto repeat; }