From 21a1bd3567e3c894b8e9de69cd1f52898c5b5c92 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 15 Jul 2014 12:12:59 +0000 Subject: fix for the wrong return value type git-svn-id: http://svn.miranda-ng.org/main/trunk@9805 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db3x_mmap/src/dbcontacts.cpp | 4 ++-- plugins/Db3x_mmap/src/dbintf.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/Db3x_mmap/src/dbcontacts.cpp b/plugins/Db3x_mmap/src/dbcontacts.cpp index 31261c1d98..218080763a 100644 --- a/plugins/Db3x_mmap/src/dbcontacts.cpp +++ b/plugins/Db3x_mmap/src/dbcontacts.cpp @@ -154,7 +154,7 @@ STDMETHODIMP_(LONG) CDb3Mmap::DeleteContact(MCONTACT contactID) return 0; } -STDMETHODIMP_(HANDLE) CDb3Mmap::AddContact() +STDMETHODIMP_(MCONTACT) CDb3Mmap::AddContact() { DWORD ofsNew; log0("add contact"); @@ -178,7 +178,7 @@ STDMETHODIMP_(HANDLE) CDb3Mmap::AddContact() cc->dwDriverData = ofsNew; NotifyEventHooks(hContactAddedEvent, dbc.dwContactID, 0); - return (HANDLE)dbc.dwContactID; + return dbc.dwContactID; } STDMETHODIMP_(BOOL) CDb3Mmap::IsDbContact(MCONTACT contactID) diff --git a/plugins/Db3x_mmap/src/dbintf.h b/plugins/Db3x_mmap/src/dbintf.h index e0c5b43ebb..1477bf27f2 100644 --- a/plugins/Db3x_mmap/src/dbintf.h +++ b/plugins/Db3x_mmap/src/dbintf.h @@ -213,7 +213,7 @@ public: STDMETHODIMP_(MCONTACT) FindFirstContact(const char *szProto = NULL); STDMETHODIMP_(MCONTACT) FindNextContact(MCONTACT contactID, const char *szProto = NULL); STDMETHODIMP_(LONG) DeleteContact(MCONTACT contactID); - STDMETHODIMP_(HANDLE) AddContact(void); + STDMETHODIMP_(MCONTACT) AddContact(void); STDMETHODIMP_(BOOL) IsDbContact(MCONTACT contactID); STDMETHODIMP_(LONG) GetEventCount(MCONTACT contactID); -- cgit v1.2.3