diff --git a/compat/mingw.c b/compat/mingw.c index c5aeb0bd07d9b6..11173e6b2fd372 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -2857,9 +2857,9 @@ int mingw_rename(const char *pold, const char *pnew) * flex array so that the structure has to be allocated on * the heap. As we declare this structure ourselves though * we can avoid the allocation and define FileName to have - * MAX_PATH bytes. + * MAX_LONG_PATH bytes. */ - WCHAR FileName[MAX_PATH]; + WCHAR FileName[MAX_LONG_PATH]; } rename_info = { 0 }; HANDLE old_handle = INVALID_HANDLE_VALUE; BOOL success;