diff --git a/sakura_core/dlg/CDlgDiff.cpp b/sakura_core/dlg/CDlgDiff.cpp index a1456a79ce..5f147604c5 100644 --- a/sakura_core/dlg/CDlgDiff.cpp +++ b/sakura_core/dlg/CDlgDiff.cpp @@ -239,7 +239,7 @@ void CDlgDiff::SetData( void ) EditInfo *pFileInfo; int i; int nItem; - WIN_CHAR szName[_MAX_PATH]; + WCHAR szName[512]; int count = 0; int selIndex = 0; ECodeType code; diff --git a/sakura_core/dlg/CDlgWindowList.cpp b/sakura_core/dlg/CDlgWindowList.cpp index dfb49cc1b3..56cc60714e 100644 --- a/sakura_core/dlg/CDlgWindowList.cpp +++ b/sakura_core/dlg/CDlgWindowList.cpp @@ -143,7 +143,7 @@ void CDlgWindowList::SetData() ::SendMessageAny(pEditNode[i].GetHwnd(), MYWM_GETFILEINFO, 0, 0); const EditInfo* pEditInfo = &m_pShareData->m_sWorkBuffer.m_EditInfo_MYWM_GETFILEINFO; - WCHAR szName[_MAX_PATH]; + WCHAR szName[512]; CFileNameManager::getInstance()->GetMenuFullLabel_WinListNoEscape(szName, _countof(szName), pEditInfo, pEditNode[i].m_nId, i, calc.GetDC()); LV_ITEM lvi;