From: Sven Strickroth Date: Wed, 30 Jan 2013 14:06:17 +0000 (+0100) Subject: Fixed issue #1620: Apply Patch serial can't open file dialog on WinXP X-Git-Tag: REL_1.8.2.0_EXTERNAL~246 X-Git-Url: https://repo.or.cz/w/TortoiseGit.git/commitdiff_plain/03663a754d9171297f222e2933f635cd7b007327 Fixed issue #1620: Apply Patch serial can't open file dialog on WinXP Signed-off-by: Sven Strickroth --- diff --git a/src/Changelog.txt b/src/Changelog.txt index 1d25da951..56b792cd1 100644 --- a/src/Changelog.txt +++ b/src/Changelog.txt @@ -7,6 +7,7 @@ Released: unreleased == Bug Fix == * Fixed issue #1611: Changing Search criteria with empty search field refreshes log content + * Fixed issue #1620: Apply Patch serial can't open file dialog on WinXP = Release 1.8.0.0 = Released: 2013-01-27 diff --git a/src/TortoiseProc/ImportPatchDlg.cpp b/src/TortoiseProc/ImportPatchDlg.cpp index 16cbd6422..77331765a 100644 --- a/src/TortoiseProc/ImportPatchDlg.cpp +++ b/src/TortoiseProc/ImportPatchDlg.cpp @@ -255,6 +255,7 @@ void CImportPatchDlg::OnBnClickedButtonAdd() CString(MAKEINTRESOURCE(IDS_PATCHFILEFILTER))); dlg.m_ofn.nMaxFile = 65536; std::unique_ptr path(new TCHAR[dlg.m_ofn.nMaxFile]); + SecureZeroMemory(path.get(), dlg.m_ofn.nMaxFile); dlg.m_ofn.lpstrFile = path.get(); INT_PTR ret = dlg.DoModal(); SetCurrentDirectory(g_Git.m_CurrentDir);