summaryrefslogtreecommitdiff
path: root/plugins/Import/src
diff options
context:
space:
mode:
authorhimselfv <me@boku.ru>2018-10-09 10:43:34 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-10-10 13:07:53 +0300
commitc39949f4b997456d1b373f6cf140f2b07fb9bbed (patch)
tree2a86a50371e6058d80f953b455b7cfcf3837e0a3 /plugins/Import/src
parent063c5fe321ebfc53cae8c0d8902fa928c96dc7c9 (diff)
Fix: Import plugin fails to match duplicate contacts when their IDs are stored as WideChar properties.
Diffstat (limited to 'plugins/Import/src')
-rw-r--r--plugins/Import/src/import.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/Import/src/import.cpp b/plugins/Import/src/import.cpp
index 1fbd83ce0f..4b4d1e10d2 100644
--- a/plugins/Import/src/import.cpp
+++ b/plugins/Import/src/import.cpp
@@ -811,6 +811,14 @@ static MCONTACT ImportContact(MCONTACT hSrc)
hDst = HContactFromID(szDstModuleName, pszUniqueSetting, pszUniqueID);
break;
+ case DBVT_WCHAR:
+ pszUniqueID = NEWWSTR_ALLOCA(dbv.pwszVal);
+ if (bIsChat)
+ hDst = HContactFromChatID(szDstModuleName, pszUniqueID);
+ else
+ hDst = HContactFromID(szDstModuleName, pszUniqueSetting, pszUniqueID);
+ break;
+
default:
hDst = INVALID_CONTACT_ID;
pszUniqueID = nullptr;