diff --git "a/dll/win32/comdlg32/filedlg.c" "b/dll/win32/comdlg32/filedlg.c" index 0adb3357b3a..fae1f8caf74 100644 --- "a/dll/win32/comdlg32/filedlg.c" +++ "b/dll/win32/comdlg32/filedlg.c" @@ -3124,6 +3124,15 @@ BOOL FILEDLG95_OnOpen(HWND hwnd) TRACE("count=%u len=%u file=%s\n", nFileCount, sizeUsed, debugstr_w(lpstrFileList)); +#ifdef __REACTOS__ // CORE-15288 + if (sizeUsed >= MAX_PATH) + { + /* Clear the too long text in the filename dialog box and lpstrFileList. */ + SendMessageA(fodInfos->DlgInfos.hwndFileName, WM_SETTEXT, 0, (LPARAM)""); + lpstrFileList[0] = UNICODE_NULL; + } +#endif + /* Step 1: Build a complete path name from the current folder and the filename or path in the edit box.