diff --git a/dll/win32/shell32/folders/CControlPanelFolder.cpp b/dll/win32/shell32/folders/CControlPanelFolder.cpp index 5782ed49d3c..05becdca7f2 100644 --- a/dll/win32/shell32/folders/CControlPanelFolder.cpp +++ b/dll/win32/shell32/folders/CControlPanelFolder.cpp @@ -333,7 +333,7 @@ HRESULT WINAPI CControlPanelFolder::CompareIDs(LPARAM lParam, PCUIDLIST_RELATIVE case 0: /* name */ result = wcsicmp(pData1->szName + pData1->offsDispName, pData2->szName + pData2->offsDispName); break; - case 4: /* comment */ + case 1: /* comment */ result = wcsicmp(pData1->szName + pData1->offsComment, pData2->szName + pData2->offsComment); break; default: @@ -581,12 +581,12 @@ HRESULT WINAPI CControlPanelFolder::GetDetailsOf(PCUITEMID_CHILD pidl, UINT iCol { case 0: /* name */ return SHSetStrRet(&psd->str, pCPanel->szName + pCPanel->offsDispName); - case 4: /* comment */ + case 1: /* comment */ return SHSetStrRet(&psd->str, pCPanel->szName + pCPanel->offsComment); } } - return S_OK; + return E_FAIL; } HRESULT WINAPI CControlPanelFolder::MapColumnToSCID(UINT column, SHCOLUMNID *pscid)