diff options
Diffstat (limited to 'plugins/MenuItemEx/src/main.cpp')
-rw-r--r-- | plugins/MenuItemEx/src/main.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp index 337237a28a..648037ea64 100644 --- a/plugins/MenuItemEx/src/main.cpp +++ b/plugins/MenuItemEx/src/main.cpp @@ -283,7 +283,14 @@ 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)
- wsprintfA(szID, "%s", dbv_uniqueid.cpbVal); //!!!!!!!!!
+ {
+ 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); //!!!!!!!!!
+ }
+ }
else
wsprintfA(szID, "%s", dbv_uniqueid.pszVal); //!!!!!!!!
|