Fixed issue #1620: Apply Patch serial can't open file dialog on WinXP
authorSven Strickroth <email@cs-ware.de>
Wed, 30 Jan 2013 14:06:17 +0000 (30 15:06 +0100)
committerSven Strickroth <email@cs-ware.de>
Wed, 30 Jan 2013 14:06:17 +0000 (30 15:06 +0100)
Signed-off-by: Sven Strickroth <email@cs-ware.de>
src/Changelog.txt
src/TortoiseProc/ImportPatchDlg.cpp

index 1d25da9..56b792c 100644 (file)
@@ -7,6 +7,7 @@ Released: unreleased
 \r
 == Bug Fix ==\r
  * Fixed issue #1611: Changing Search criteria with empty search field refreshes log content\r
+ * Fixed issue #1620: Apply Patch serial can't open file dialog on WinXP\r
 \r
 = Release 1.8.0.0 =\r
 Released: 2013-01-27\r
index 16cbd64..7733176 100644 (file)
@@ -255,6 +255,7 @@ void CImportPatchDlg::OnBnClickedButtonAdd()
                                        CString(MAKEINTRESOURCE(IDS_PATCHFILEFILTER)));\r
        dlg.m_ofn.nMaxFile = 65536;\r
        std::unique_ptr<TCHAR[]> path(new TCHAR[dlg.m_ofn.nMaxFile]);\r
+       SecureZeroMemory(path.get(), dlg.m_ofn.nMaxFile);\r
        dlg.m_ofn.lpstrFile = path.get();\r
        INT_PTR ret = dlg.DoModal();\r
        SetCurrentDirectory(g_Git.m_CurrentDir);\r