Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCasimir666 <casimir666@users.sourceforge.net>2009-04-18 23:59:48 +0400
committerCasimir666 <casimir666@users.sourceforge.net>2009-04-18 23:59:48 +0400
commit02e248db2a07fa2f112312e9ffab594248b3e071 (patch)
treeac784b2d34f20af18b892369c70f2c71f1d217c2 /src/apps/mplayerc/AuthDlg.cpp
parent530c6354edabdd19d45d883fee88793664170adf (diff)
Resource cleanup
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1049 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/AuthDlg.cpp')
-rw-r--r--src/apps/mplayerc/AuthDlg.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/apps/mplayerc/AuthDlg.cpp b/src/apps/mplayerc/AuthDlg.cpp
index 59b13571e..b8adc8e85 100644
--- a/src/apps/mplayerc/AuthDlg.cpp
+++ b/src/apps/mplayerc/AuthDlg.cpp
@@ -24,6 +24,7 @@
#include "stdafx.h"
#include "mplayerc.h"
#include "AuthDlg.h"
+#include "SettingsDefines.h"
// CAuthDlg dialog
@@ -75,7 +76,7 @@ BOOL CAuthDlg::OnInitDialog()
if(pApp->m_pszRegistryKey)
{
- CRegKey hSecKey(pApp->GetSectionKey(ResStr(IDS_R_LOGINS)));
+ CRegKey hSecKey(pApp->GetSectionKey(IDS_R_LOGINS));
if(hSecKey)
{
int i = 0;
@@ -104,7 +105,7 @@ BOOL CAuthDlg::OnInitDialog()
buff.Allocate(32767/sizeof(TCHAR));
DWORD len = GetPrivateProfileSection(
- ResStr(IDS_R_LOGINS), buff, 32767/sizeof(TCHAR), pApp->m_pszProfileName);
+ IDS_R_LOGINS, buff, 32767/sizeof(TCHAR), pApp->m_pszProfileName);
TCHAR* p = buff;
while(*p && len > 0)
@@ -135,7 +136,7 @@ void CAuthDlg::OnBnClickedOk()
if(!m_username.IsEmpty())
{
CWinApp* pApp = AfxGetApp();
- pApp->WriteProfileString(ResStr(IDS_R_LOGINS), m_username, m_remember ? DEncrypt(m_password) : _T(""));
+ pApp->WriteProfileString(IDS_R_LOGINS, m_username, m_remember ? DEncrypt(m_password) : _T(""));
}
OnOK();