From bac637ddfa3b79d10d3c709bb4c0346170a16d62 Mon Sep 17 00:00:00 2001 From: WoodsCheney Date: Mon, 26 Mar 2018 20:29:22 +0800 Subject: [PATCH] Fix Open File Dialog error for a long path Fix #4345 --- PowerEditor/src/WinControls/OpenSaveFileDialog/FileDialog.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/PowerEditor/src/WinControls/OpenSaveFileDialog/FileDialog.cpp b/PowerEditor/src/WinControls/OpenSaveFileDialog/FileDialog.cpp index a82ccc7ed..b9a9586d8 100644 --- a/PowerEditor/src/WinControls/OpenSaveFileDialog/FileDialog.cpp +++ b/PowerEditor/src/WinControls/OpenSaveFileDialog/FileDialog.cpp @@ -42,9 +42,7 @@ FileDialog::FileDialog(HWND hwnd, HINSTANCE hInst) staticThis = this; //for (int i = 0 ; i < nbExtMax ; i++) // _extArray[i][0] = '\0'; - - _fileName[0] = '\0'; - + memset(_fileName, 0, sizeof(_fileName)); _winVersion = (NppParameters::getInstance())->getWinVersion(); _ofn.lStructSize = sizeof(_ofn);