Browse Source

fixed crash when searching for 'n', caused string format exception

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@541 595ec19a-5cb4-439b-94a8-42fb3063c22c
sabrogden 15 years ago
parent
commit
ed2a3e56d7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      QPasteWnd.cpp

+ 2 - 0
QPasteWnd.cpp

@@ -996,6 +996,8 @@ BOOL CQPasteWnd::FillList(CString csSQLSearch /*=""*/)
 
 	MoveControls();
 
+	m_CountSQL.Replace(_T("%"), _T("%%"));
+	m_SQL.Replace(_T("%"), _T("%%"));
 	Log(StrF(_T("Start Fill List - Count SQL: %s, Query SQL: %s"), m_CountSQL, m_SQL));
 
     return TRUE;