File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ int CDlgDiff::DoModal(
101101 const WCHAR * pszPath // 自ファイル
102102)
103103{
104- wcscpy ( m_szFile1, pszPath) ;
104+ m_szFile1 = pszPath;
105105
106106 return (int )CDialog::DoModal ( hInstance, hwndParent, IDD_DIFF , lParam );
107107}
@@ -129,7 +129,7 @@ BOOL CDlgDiff::OnBnClicked( int wID )
129129 );
130130 if ( cDlgOpenFile.DoModal_GetOpenFileName ( szPath ) )
131131 {
132- wcscpy ( m_szFile2, szPath ) ;
132+ m_szFile2 = szPath ;
133133 ApiWrap::DlgItem_SetText ( GetHwnd (), IDC_EDIT_DIFF_DST , m_szFile2 );
134134 // 外部ファイルを選択状態に
135135 ::CheckDlgButton ( GetHwnd(), IDC_RADIO_DIFF_DST1, TRUE );
@@ -384,7 +384,7 @@ int CDlgDiff::GetData( void )
384384 ::SendMessageAny ( m_hWnd_Dst, MYWM_GETFILEINFO , 0 , 0 );
385385 pFileInfo = (EditInfo*)&m_pShareData->m_sWorkBuffer .m_EditInfo_MYWM_GETFILEINFO ;
386386
387- wcscpy ( m_szFile2, pFileInfo->m_szPath ) ;
387+ m_szFile2 = pFileInfo->m_szPath ;
388388 m_bIsModifiedDst = pFileInfo->m_bIsModified ;
389389 m_nCodeTypeDst = pFileInfo->m_nCharCode ;
390390 m_bBomDst = pFileInfo->m_bBom ;
You can’t perform that action at this time.
0 commit comments