diff options
-rw-r--r-- | src/mir_app/src/enterstring.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/enterstring.cpp b/src/mir_app/src/enterstring.cpp index 8bb3970d8e..bee1366815 100644 --- a/src/mir_app/src/enterstring.cpp +++ b/src/mir_app/src/enterstring.cpp @@ -98,7 +98,7 @@ class CEnterStringDlg : public CDlgBase char setting[MAXMODULELABELLENGTH];
mir_snprintf(setting, "%s%d", m_param.szDataPrefix, id);
db_set_ws(0, m_param.szModuleName, setting, string);
- db_set_b(0, m_param.szModuleName, m_param.szDataPrefix, (id + 1) % idcControl);
+ db_set_b(0, m_param.szModuleName, m_param.szDataPrefix, (id + 1) % m_param.recentCount);
}
LRESULT onModuleUnload(UINT, WPARAM wParam, LPARAM)
|