diff options
author | George Hazan <george.hazan@gmail.com> | 2014-03-02 20:06:10 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-03-02 20:06:10 +0000 |
commit | e27f1addc43bdfeb896081ecca5e0b52e9e6179a (patch) | |
tree | cafb3b02fbf0f5c2b6085d82af212c05da60a2c7 /src/modules/metacontacts/meta_edit.cpp | |
parent | 79939e2f78e89f4581cfbcc19818c756ece26ad6 (diff) |
current mc state
git-svn-id: http://svn.miranda-ng.org/main/trunk@8362 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/metacontacts/meta_edit.cpp')
-rw-r--r-- | src/modules/metacontacts/meta_edit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/metacontacts/meta_edit.cpp b/src/modules/metacontacts/meta_edit.cpp index 25ff77a22e..5fda2d5f8e 100644 --- a/src/modules/metacontacts/meta_edit.cpp +++ b/src/modules/metacontacts/meta_edit.cpp @@ -161,7 +161,7 @@ void ApplyChanges(CHANGES *chg) if (chg->hOfflineContact)
db_set_dw(chg->hMeta, META_PROTO, "OfflineSend", Meta_GetContactNumber(chg->hOfflineContact));
else
- db_set_dw(chg->hMeta, META_PROTO, "OfflineSend", (DWORD)-1);
+ db_set_dw(chg->hMeta, META_PROTO, "OfflineSend", INVALID_CONTACT_ID);
// fix nick
MCONTACT most_online = Meta_GetMostOnline(chg->hMeta);
@@ -268,8 +268,8 @@ INT_PTR CALLBACK Meta_EditDialogProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR EnableWindow(GetDlgItem(hwndDlg, IDC_BTN_DOWN), FALSE);
int nb_contacts = db_get_dw(lParam, META_PROTO, "NumContacts", 0);
- int default_contact_number = db_get_dw(lParam, META_PROTO, "Default", (DWORD)-1);
- int offline_contact_number = db_get_dw(lParam, META_PROTO, "OfflineSend", (DWORD)-1);
+ int default_contact_number = db_get_dw(lParam, META_PROTO, "Default", INVALID_CONTACT_ID);
+ int offline_contact_number = db_get_dw(lParam, META_PROTO, "OfflineSend", INVALID_CONTACT_ID);
changes.hMeta = lParam;
changes.num_contacts = nb_contacts;
|