diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2014-12-05 10:45:31 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2014-12-05 10:45:31 +0000 |
commit | 5e1eb14d255dbce63df6891d60e08732fed3491c (patch) | |
tree | 42a805042391eb66b786719ef5a836ea02bd5bb8 | |
parent | 9fca9c4c344cb330434e9e72e7934e207bcfaa4d (diff) |
MenuEX crash fix (by Mataes)
git-svn-id: http://svn.miranda-ng.org/main/trunk@11249 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/MenuItemEx/src/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp index 8e1dc6778a..81817ca216 100644 --- a/plugins/MenuItemEx/src/main.cpp +++ b/plugins/MenuItemEx/src/main.cpp @@ -281,8 +281,10 @@ void GetID(MCONTACT hContact, LPSTR szProto, LPSTR szID, size_t dwIDSize) mir_snprintf(szID, dwIDSize, "%u", dbv_uniqueid.dVal);
else if (dbv_uniqueid.type == DBVT_WORD)
mir_snprintf(szID, dwIDSize, "%u", dbv_uniqueid.wVal);
+ else if (dbv_uniqueid.type == DBVT_BLOB)
+ mir_snprintf(szID, dwIDSize, "%s", dbv_uniqueid.cpbVal);
else
- strncpy_s(szID, dwIDSize, (char*)dbv_uniqueid.cpbVal, _TRUNCATE);
+ strncpy_s(szID, dwIDSize, (char*)dbv_uniqueid.pszVal, _TRUNCATE);
db_free(&dbv_uniqueid);
}
|