summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-04-01 14:48:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-04-01 14:48:39 +0300
commit3ecac50fe24978aa1a3910f90505d9fb1276d7ca (patch)
treecef19d4d634eff66a9692bf570fcdbbba5d8587f /plugins
parentb7c9b0c944378ccf373d9daf0dac62dc81a7930e (diff)
fixes #2264 (Msg_Export: в столбце UIN перманентный ноль)
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/Msg_Export/src/options.cpp12
-rw-r--r--plugins/Msg_Export/src/version.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/plugins/Msg_Export/src/options.cpp b/plugins/Msg_Export/src/options.cpp
index e7f91192b0..932f9f3778 100755
--- a/plugins/Msg_Export/src/options.cpp
+++ b/plugins/Msg_Export/src/options.cpp
@@ -495,12 +495,12 @@ public:
sItem.pszText = pa->tszAccountName;
listUsers.SetItem(&sItem);
- DWORD dwUIN = db_get_dw(hContact, pa->szModuleName, "UIN", 0);
- wchar_t szTmp[50];
- mir_snwprintf(szTmp, L"%d", dwUIN);
- sItem.iSubItem = 3;
- sItem.pszText = szTmp;
- listUsers.SetItem(&sItem);
+ ptrW wszUin(Contact_GetInfo(CNF_UNIQUEID, hContact, pa->szModuleName));
+ if (wszUin) {
+ sItem.iSubItem = 3;
+ sItem.pszText = wszUin;
+ listUsers.SetItem(&sItem);
+ }
listUsers.SetCheckState(sItem.iItem, g_plugin.getByte(hContact, "EnableLog", 1));
}
diff --git a/plugins/Msg_Export/src/version.h b/plugins/Msg_Export/src/version.h
index 3c185aefa3..2c0170c472 100644
--- a/plugins/Msg_Export/src/version.h
+++ b/plugins/Msg_Export/src/version.h
@@ -1,7 +1,7 @@
#define __MAJOR_VERSION 3
#define __MINOR_VERSION 1
#define __RELEASE_NUM 2
-#define __BUILD_NUM 4
+#define __BUILD_NUM 5
#include <stdver.h>