diff --git a/teraterm/teraterm/filesys_proto.cpp b/teraterm/teraterm/filesys_proto.cpp index 3492317f3..e6b230f52 100644 --- a/teraterm/teraterm/filesys_proto.cpp +++ b/teraterm/teraterm/filesys_proto.cpp @@ -1513,6 +1513,7 @@ static wchar_t **_GetTransFname(HWND hWnd, const wchar_t *DlgCaption) wchar_t *FNFilter = GetCommonDialogFilterWW(filterW, UILanguageFileW); free(filterW); + FileName[0] = 0; OPENFILENAMEW ofn = {}; ofn.lStructSize = get_OPENFILENAME_SIZE(); ofn.hwndOwner = hWnd;