summaryrefslogtreecommitdiff
path: root/plugins/ContactsPlus
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ContactsPlus')
-rw-r--r--plugins/ContactsPlus/src/utils.cpp6
-rw-r--r--plugins/ContactsPlus/src/utils.h2
2 files changed, 3 insertions, 5 deletions
diff --git a/plugins/ContactsPlus/src/utils.cpp b/plugins/ContactsPlus/src/utils.cpp
index 9b64ae65d5..523c6ad055 100644
--- a/plugins/ContactsPlus/src/utils.cpp
+++ b/plugins/ContactsPlus/src/utils.cpp
@@ -87,13 +87,11 @@ TCHAR* GetContactUID(HCONTACT hContact)
return NULL;
}
-void DialogAddContactExecute(HWND hwndDlg, HANDLE hNewContact)
+void DialogAddContactExecute(HWND hwndDlg, HCONTACT hNewContact)
{
ADDCONTACTSTRUCT acs = { 0 };
-
- acs.handle = hNewContact;
+ acs.hContact = hNewContact;
acs.handleType = HANDLE_CONTACT;
-
CallService(MS_ADDCONTACT_SHOW, (WPARAM)hwndDlg, (LPARAM)&acs);
}
diff --git a/plugins/ContactsPlus/src/utils.h b/plugins/ContactsPlus/src/utils.h
index 4d633d0aa5..d62bee86ae 100644
--- a/plugins/ContactsPlus/src/utils.h
+++ b/plugins/ContactsPlus/src/utils.h
@@ -40,7 +40,7 @@ void UpdateDialogAddButton(HWND hwndDlg, HCONTACT hContact);
HICON InitMButton(HWND hDlg, int idButton, LPCSTR szIcon, char* szTip);
-void DialogAddContactExecute(HWND hwndDlg, HANDLE hNewContact);
+void DialogAddContactExecute(HWND hwndDlg, HCONTACT hNewContact);
HICON LoadContactProtoIcon(HCONTACT hContact);