From a890e2d9fb4a6c1888bf4c18822a6c57e27ec2ff Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 14 Oct 2012 16:27:49 +0000 Subject: crash fix for 64 bit dbeditor fixes: 111 git-svn-id: http://svn.miranda-ng.org/main/trunk@1934 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/DbEditorPP/src/exportimport.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/plugins/DbEditorPP/src/exportimport.cpp b/plugins/DbEditorPP/src/exportimport.cpp index ee5f6762f8..2e58ea34ea 100644 --- a/plugins/DbEditorPP/src/exportimport.cpp +++ b/plugins/DbEditorPP/src/exportimport.cpp @@ -181,17 +181,13 @@ char *NickFromHContact(HANDLE hContact) } else { - char *uid; - char szUID[256]; - - uid = (char*)CallProtoService(szProto,PS_GETCAPS,PFLAG_UNIQUEIDSETTING,0); - if ((int)uid!=CALLSERVICE_NOTFOUND && uid) - { + char *uid = (char*)CallProtoService(szProto, PS_GETCAPS, PFLAG_UNIQUEIDSETTING, 0); + if ((INT_PTR)uid != CALLSERVICE_NOTFOUND && uid) { + char szUID[256]; GetValue(hContact, szProto, uid, szUID, SIZEOF(szUID)); mir_snprintf(nick, SIZEOF(nick), "%s *(%s)*<%s>*{%s}*", (char*)GetContactName(hContact,szProto,0), szProto, uid, szUID); } - else - mir_snprintf(nick, SIZEOF(nick), "%s (%s)", (char*)GetContactName(hContact,szProto,0), szProto); + else mir_snprintf(nick, SIZEOF(nick), "%s (%s)", (char*)GetContactName(hContact,szProto,0), szProto); } } -- cgit v1.2.3