summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/source/win32/shlxthandler/columninfo/columninfo.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/shell/source/win32/shlxthandler/columninfo/columninfo.cxx b/shell/source/win32/shlxthandler/columninfo/columninfo.cxx
index 6f4129e8f21f..9eeb252d182c 100644
--- a/shell/source/win32/shlxthandler/columninfo/columninfo.cxx
+++ b/shell/source/win32/shlxthandler/columninfo/columninfo.cxx
@@ -110,10 +110,7 @@ HRESULT STDMETHODCALLTYPE CColumnInfo::Initialize(LPCSHCOLUMNINIT /*psci*/)
return S_OK;
}
-
// Register all columns we support
-
-
HRESULT STDMETHODCALLTYPE CColumnInfo::GetColumnInfo(DWORD dwIndex, SHCOLUMNINFO *psci)
{
if (dwIndex >= ColumnInfoTableSize)
@@ -126,14 +123,12 @@ HRESULT STDMETHODCALLTYPE CColumnInfo::GetColumnInfo(DWORD dwIndex, SHCOLUMNINFO
psci->scid.fmtid = ColumnInfoTable[dwIndex].scid.fmtid;
psci->scid.pid = ColumnInfoTable[dwIndex].scid.pid;
ZeroMemory(psci->wszTitle, sizeof(psci->wszTitle));
- wcsncpy(psci->wszTitle, ColumnInfoTable[dwIndex].wszTitle, (sizeof(psci->wszTitle) - 1));
-
+ wcsncpy(psci->wszTitle, ColumnInfoTable[dwIndex].wszTitle,
+ (sizeof(psci->wszTitle) / sizeof(psci->wszTitle[0]) - 1));
return S_OK;
}
-
-
HRESULT STDMETHODCALLTYPE CColumnInfo::GetItemData(LPCSHCOLUMNID pscid, LPCSHCOLUMNDATA pscd, VARIANT *pvarData)
{
if (IsOOFileExtension(pscd->pwszExt))