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 --- src/modules/database/dbintf.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/modules/database') diff --git a/src/modules/database/dbintf.cpp b/src/modules/database/dbintf.cpp index 322355f2c4..6a3c332ed4 100644 --- a/src/modules/database/dbintf.cpp +++ b/src/modules/database/dbintf.cpp @@ -57,7 +57,9 @@ static INT_PTR srvDeleteContact(WPARAM wParam, LPARAM) static INT_PTR srvAddContact(WPARAM wParam, LPARAM) { - return (currDb) ? (INT_PTR)currDb->AddContact() : 0; + MCONTACT hNew = (currDb) ? currDb->AddContact() : 0; + Netlib_Logf(NULL, "New contact created: %d", hNew); + return hNew; } static INT_PTR srvIsDbContact(WPARAM wParam, LPARAM) -- cgit v1.2.3