summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-10-14 16:27:49 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-10-14 16:27:49 +0000
commita890e2d9fb4a6c1888bf4c18822a6c57e27ec2ff (patch)
tree78265190865d59fc2fcc6ac8a110aaa344e34a3c /plugins
parentba2a7ef4deda8cfc3d0291ddf38b83c422f06fee (diff)
crash fix for 64 bit dbeditor
fixes: 111 git-svn-id: http://svn.miranda-ng.org/main/trunk@1934 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/DbEditorPP/src/exportimport.cpp12
1 files 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);
}
}