Browse Source

CProcessPaste::DoPaste() - use sizeof("Ignore")

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@43 595ec19a-5cb4-439b-94a8-42fb3063c22c
ingenuus 22 years ago
parent
commit
1567efaaaf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ProcessPaste.cpp

+ 2 - 2
ProcessPaste.cpp

@@ -792,7 +792,7 @@ BOOL CProcessPaste::DoPaste()
 		// (the element is already in the db and its lDate is updated by MarkAsPasted())
 		// (the element is already in the db and its lDate is updated by MarkAsPasted())
 		if( GetClipIDs().GetSize() == 1 )
 		if( GetClipIDs().GetSize() == 1 )
 		{
 		{
-			m_pOle->CacheGlobalData(theApp.m_cfIgnoreClipboard, NewGlobalP("Ignore", 8));
+			m_pOle->CacheGlobalData(theApp.m_cfIgnoreClipboard, NewGlobalP("Ignore", sizeof("Ignore")));
 			m_pOle->SetClipboard();
 			m_pOle->SetClipboard();
 		}
 		}
 		else // we are pasting a new aggregate text
 		else // we are pasting a new aggregate text
@@ -801,7 +801,7 @@ BOOL CProcessPaste::DoPaste()
 				m_pOle->SetClipboard();
 				m_pOle->SetClipboard();
 			else
 			else
 			{
 			{
-				m_pOle->CacheGlobalData(theApp.m_cfIgnoreClipboard, NewGlobalP("Ignore", 8));
+				m_pOle->CacheGlobalData(theApp.m_cfIgnoreClipboard, NewGlobalP("Ignore", sizeof("Ignore")));
 				m_pOle->SetClipboard();
 				m_pOle->SetClipboard();
 			}
 			}
 		}
 		}