{\r
if (!bSaveAndValidate) // SetDialogData\r
*nSettingStyle = SETTING_UNDEFINED;\r
- int nAppID = GetApplicationIndex(szApplicationName);\r
+ int nAppID = GetAppID(szApplicationName);\r
if (nAppID == MAX_APP) {\r
if (bSaveAndValidate) { // GetDialogData\r
for (nAppID = 0; nAppID < MAX_APP; ++nAppID)\r
{\r
int nSettingStyle = SETTING_SPECIFIC;\r
const int nDstApp = GetApplicationIndex(szDstApp, TRUE, &nSettingStyle);\r
- const int nSrcApp = GetApplicationIndex(szSrcApp);\r
+ const int nSrcApp = GetAppID(szSrcApp);\r
\r
#define CopyMember(member) CopyMemory(&m_Config. ## member ## [nDstApp], &m_Config. ## member ## [nSrcApp], sizeof(m_Config. ## member ## [nSrcApp]))\r
CopyMember(b326Compatible);\r
\r
// return application index\r
// if there is NOT the application in the data, return MAX_APP\r
-int CProfile::GetApplicationIndex(const CString szApplicationName)\r
+int CProfile::GetAppID(const LPCSTR szAppName)\r
{\r
int nAppID = 0;\r
for (nAppID = 0; nAppID < MAX_APP; ++nAppID)\r
- if (szApplicationName == m_Config.szSpecialApp[nAppID])\r
+ if (!_tcscmp(szAppName, m_Config.szSpecialApp[nAppID]))\r
break;\r
return nAppID;\r
}\r
static BOOL IsDialog(CString sz);\r
static BOOL GetUseDialogSetting(int nAppID);\r
static void SetUseDialogSetting(int nAppID, BOOL bUseDialogSetting);\r
- static int GetApplicationIndex(CString szApplicationName);\r
+ static int GetAppID(const LPCSTR szAppName);\r
static void CopyData(CString szDestinationApplication, CString szSourceApplication);\r
static void ReadKeyBind(int& pnCommandType, int& pnKey, LPCTSTR szKeyBind);\r
static LPCTSTR Key2String(int nKey);\r
UpdateData();\r
EnableControl(ACTIVE_TAB);\r
\r
- if (CProfile::GetApplicationIndex(m_szCurrentApplication) == MAX_APP) {\r
+ if (CProfile::GetAppID(m_szCurrentApplication) == MAX_APP) {\r
CProfile::CopyData(m_szCurrentApplication, CString(MAKEINTRESOURCE(IDS_DEFAULT)));\r
SetDialogData();\r
}\r