diff options
author | George Hazan <george.hazan@gmail.com> | 2013-07-10 15:56:56 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-07-10 15:56:56 +0000 |
commit | 22f0f1c668f467a4b938d007f689991fb6da602d (patch) | |
tree | c2a02b8c4067af0b6c86a78091f14d99f681c964 /protocols/JabberG/src/jabber_util.cpp | |
parent | eae36a4c2b34054432e105b81352f2b59db84b24 (diff) |
Jabber -> new helpers
git-svn-id: http://svn.miranda-ng.org/main/trunk@5309 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_util.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_util.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp index 834f515da8..bf438b42b7 100644 --- a/protocols/JabberG/src/jabber_util.cpp +++ b/protocols/JabberG/src/jabber_util.cpp @@ -1179,7 +1179,7 @@ void CJabberProto::ComboLoadRecentStrings(HWND hwndDlg, UINT idcCombo, char *par DBVARIANT dbv;
char setting[MAXMODULELABELLENGTH];
mir_snprintf(setting, sizeof(setting), "%s%d", param, i);
- if ( !getTString(NULL, setting, &dbv)) {
+ if ( !getTString(setting, &dbv)) {
SendDlgItemMessage(hwndDlg, idcCombo, CB_ADDSTRING, 0, (LPARAM)dbv.ptszVal);
db_free(&dbv);
} }
@@ -1199,11 +1199,11 @@ void CJabberProto::ComboAddRecentString(HWND hwndDlg, UINT idcCombo, char *param if ((id = SendDlgItemMessage(hwndDlg, idcCombo, CB_FINDSTRING, (WPARAM)-1, (LPARAM)_T(""))) != CB_ERR)
SendDlgItemMessage(hwndDlg, idcCombo, CB_DELETESTRING, id, 0);
- id = getByte(NULL, param, 0);
+ id = getByte(param, 0);
char setting[MAXMODULELABELLENGTH];
mir_snprintf(setting, sizeof(setting), "%s%d", param, id);
- setTString(NULL, setting, string);
- setByte(NULL, param, (id+1)%recentCount);
+ setTString(setting, string);
+ setByte(param, (id+1)%recentCount);
}
/////////////////////////////////////////////////////////////////////////////////////////
|