git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@113 595ec19a-5cb4-439b-94a8-42fb3063c22c
@@ -401,6 +401,8 @@ bool CClip::FindDuplicate( CMainTable& recset, BOOL bCheckLastOnly )
if( bCheckLastOnly )
{
recset.Open("SELECT * FROM Main");
+ if(recset.IsEOF())
+ return false;
recset.MoveFirst();
// if an entry exists and they are the same size and the format data matches
if( !recset.IsBOF() && !recset.IsEOF() &&