From 3a5c7a433b3e190e2ba59f8a5416879f197f9a54 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Tue, 30 Sep 2014 06:42:09 +0000 Subject: patch for crashing in presenting BLOB ID reverted git-svn-id: http://svn.miranda-ng.org/main/trunk@10647 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MenuItemEx/src/main.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'plugins/MenuItemEx/src/main.cpp') diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp index 4382ca23ea..edc4d54edd 100644 --- a/plugins/MenuItemEx/src/main.cpp +++ b/plugins/MenuItemEx/src/main.cpp @@ -283,14 +283,7 @@ void GetID(MCONTACT hContact, LPSTR szProto, LPSTR szID) else if (dbv_uniqueid.type == DBVT_WORD) wsprintfA(szID, "%u", dbv_uniqueid.wVal); //!!!!!!!!! else if (dbv_uniqueid.type == DBVT_BLOB) - { - for (int i = 0; i < dbv_uniqueid.cpbVal; i++) - { - char tmp[3]; - mir_snprintf(tmp, SIZEOF(tmp), "%02X", (BYTE)dbv_uniqueid.pbVal[i]); - strcat(szID, tmp); //!!!!!!!!! - } - } + wsprintfA(szID, "%s", dbv_uniqueid.cpbVal); //!!!!!!!!! else wsprintfA(szID, "%s", dbv_uniqueid.pszVal); //!!!!!!!! -- cgit v1.2.3