Skip to content

Commit

Permalink
Fix issue #2045: WinMerge Crashed for Comparing Clipboard Texts
Browse files Browse the repository at this point in the history
  • Loading branch information
sdottaka committed Sep 27, 2023
1 parent 01248c8 commit 1159f67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/MainFrm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ bool CMainFrame::ShowAutoMergeDoc(UINT nID, IDirDoc * pDirDoc,
}
bool CMainFrame::CompareFilesIfFilesAreLarge(IDirDoc* pDirDoc, int nFiles, const FileLocation ifileloc[])
{
IDirDoc* pDirDoc2 = pDirDoc ? pDirDoc : static_cast<CDirDoc*>(theApp.m_pDirTemplate->CreateNewDocument());
IDirDoc* pDirDoc2 = pDirDoc ? pDirDoc : static_cast<CDirDoc*>(theApp.GetDirTemplate()->CreateNewDocument());
bool result = pDirDoc2->CompareFilesIfFilesAreLarge(nFiles, ifileloc);
if (pDirDoc2 != pDirDoc)
delete static_cast<CDirDoc*>(pDirDoc2);
Expand Down

0 comments on commit 1159f67

Please sign in to comment.