Skip to content

Commit 89d9739

Browse files
committed
replace wcscpy (CControlTray)
1 parent b4f29b9 commit 89d9739

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

sakura_core/_main/CControlTray.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@ void CControlTray::DoGrep()
8383
m_cDlgGrep.m_strText = m_pShareData->m_sSearchKeywords.m_aSearchKeys[0];
8484
}
8585
if( 0 < m_pShareData->m_sSearchKeywords.m_aGrepFiles.size() ){
86-
wcscpy( m_cDlgGrep.m_szFile, m_pShareData->m_sSearchKeywords.m_aGrepFiles[0] ); /* 検索ファイル */
86+
m_cDlgGrep.m_szFile = m_pShareData->m_sSearchKeywords.m_aGrepFiles[0]; /* 検索ファイル */
8787
}
8888
if( 0 < m_pShareData->m_sSearchKeywords.m_aGrepFolders.size() ){
89-
wcscpy( m_cDlgGrep.m_szFolder, m_pShareData->m_sSearchKeywords.m_aGrepFolders[0] ); /* 検索フォルダー */
89+
m_cDlgGrep.m_szFolder = m_pShareData->m_sSearchKeywords.m_aGrepFolders[0]; /* 検索フォルダー */
9090
}
9191
if (0 < m_pShareData->m_sSearchKeywords.m_aExcludeFiles.size()) {
92-
wcscpy(m_cDlgGrep.m_szExcludeFile, m_pShareData->m_sSearchKeywords.m_aExcludeFiles[0]); /* 除外ファイル */
92+
m_cDlgGrep.m_szExcludeFile = m_pShareData->m_sSearchKeywords.m_aExcludeFiles[0]; /* 除外ファイル */
9393
}
9494
if (0 < m_pShareData->m_sSearchKeywords.m_aExcludeFolders.size()) {
95-
wcscpy(m_cDlgGrep.m_szExcludeFolder, m_pShareData->m_sSearchKeywords.m_aExcludeFolders[0]); /* 除外フォルダー */
95+
m_cDlgGrep.m_szExcludeFolder = m_pShareData->m_sSearchKeywords.m_aExcludeFolders[0]; /* 除外フォルダー */
9696
}
9797

9898
/* Grepダイアログの表示 */
@@ -276,7 +276,7 @@ HWND CControlTray::Create( HINSTANCE hInstance )
276276
m_pcPropertyManager = new CPropertyManager();
277277
m_pcPropertyManager->Create( GetTrayHwnd(), &m_hIcons, &m_cMenuDrawer );
278278

279-
wcscpy(m_szLanguageDll, GetDllShareData().m_Common.m_sWindow.m_szLanguageDll);
279+
m_szLanguageDll = GetDllShareData().m_Common.m_sWindow.m_szLanguageDll;
280280

281281
return GetTrayHwnd();
282282
}
@@ -603,7 +603,7 @@ LRESULT CControlTray::DispatchEvent(
603603
case PM_CHANGESETTING_ALL:
604604
{
605605
bool bChangeLang = wcscmp( GetDllShareData().m_Common.m_sWindow.m_szLanguageDll, m_szLanguageDll ) != 0;
606-
wcscpy( m_szLanguageDll, GetDllShareData().m_Common.m_sWindow.m_szLanguageDll );
606+
m_szLanguageDll = GetDllShareData().m_Common.m_sWindow.m_szLanguageDll;
607607
std::vector<std::wstring> values;
608608
if( bChangeLang ){
609609
CShareData::getInstance()->ConvertLangValues(values, true);

0 commit comments

Comments
 (0)