diff options
Diffstat (limited to 'src/mpc-hc/FileAssoc.cpp')
-rw-r--r-- | src/mpc-hc/FileAssoc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mpc-hc/FileAssoc.cpp b/src/mpc-hc/FileAssoc.cpp index 032d7318a..56d8aa46f 100644 --- a/src/mpc-hc/FileAssoc.cpp +++ b/src/mpc-hc/FileAssoc.cpp @@ -240,7 +240,7 @@ bool CFileAssoc::Register(CString ext, CString strLabel, bool bRegister, bool bR /* icon_index value -1 means no icon was found in the iconlib for the file extension */
if (iconIndex >= 0 && ExtractIcon(AfxGetApp()->m_hInstance, m_iconLibPath, iconIndex)) {
- appIcon.Format(_T("\"%s\",%d"), m_iconLibPath, iconIndex);
+ appIcon.Format(_T("\"%s\",%d"), m_iconLibPath.GetString(), iconIndex);
}
}
@@ -739,7 +739,7 @@ bool CFileAssoc::ReAssocIcons(const CAtlList<CString>& exts) /* icon_index value -1 means no icon was found in the iconlib for the file extension */
if (iconIndex >= 0 && ExtractIcon(AfxGetApp()->m_hInstance, m_iconLibPath, iconIndex)) {
- appIcon.Format(_T("\"%s\",%d"), m_iconLibPath, iconIndex);
+ appIcon.Format(_T("\"%s\",%d"), m_iconLibPath.GetString(), iconIndex);
}
/* no icon was found for the file extension, so use MPC-HC's icon */
|