OSDN Git Service

Remove compiler warning
authorsdottaka <none@none>
Mon, 4 Feb 2013 07:11:40 +0000 (23:11 -0800)
committersdottaka <none@none>
Mon, 4 Feb 2013 07:11:40 +0000 (23:11 -0800)
Src/Common/SuperComboBox.cpp

index 6e93090..4f49ecf 100644 (file)
@@ -165,7 +165,7 @@ BOOL CSuperComboBox::AttachSystemImageList()
        if (!m_himlSystem)
        {
                SHFILEINFO sfi = {0};
-               m_himlSystem = (HIMAGELIST)SHGetFileInfo(_T("C:\\"), 0, 
+               m_himlSystem = (HIMAGELIST)SHGetFileInfo(_T(""), 0, 
                        &sfi, sizeof(sfi), SHGFI_SMALLICON | SHGFI_SYSICONINDEX);
                if (!m_himlSystem)
                        return FALSE;
@@ -519,7 +519,7 @@ void CSuperComboBox::OnGetDispInfo(NMHDR *pNotifyStruct, LRESULT *pResult)
                SHFILEINFO sfi = {0};
                TCHAR szDrive[5] = {0};
                CString sText;
-               GetLBText(pDispInfo->ceItem.iItem, sText);
+               GetLBText(static_cast<int>(pDispInfo->ceItem.iItem), sText);
                lstrcpyn(szDrive, sText, 4);
                if (sText[1] != '\\' && GetDriveType(szDrive) != DRIVE_REMOTE)
                {