summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/src/ui.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-08-22 17:19:41 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-08-22 17:19:41 +0300
commit4bba89a17624775e59b19d10da8b6967f74b5371 (patch)
tree9ebf2e0af82bbf1b48a25f70cd3ad71f46a68eb8 /plugins/Db3x_mmap/src/ui.cpp
parent92fec1aa22df4c4f1213d33663637c00b753f451 (diff)
code cleaning
Diffstat (limited to 'plugins/Db3x_mmap/src/ui.cpp')
-rw-r--r--plugins/Db3x_mmap/src/ui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Db3x_mmap/src/ui.cpp b/plugins/Db3x_mmap/src/ui.cpp
index 8254a99df4..1eeab530f5 100644
--- a/plugins/Db3x_mmap/src/ui.cpp
+++ b/plugins/Db3x_mmap/src/ui.cpp
@@ -108,7 +108,7 @@ static INT_PTR CALLBACK sttEnterPassword(HWND hwndDlg, UINT uMsg, WPARAM wParam,
CREDENTIAL cred = { 0 };
cred.Type = CRED_TYPE_GENERIC;
cred.TargetName = L"Miranda NG/Dbx_mmap";
- cred.CredentialBlobSize = mir_wstrlen(param->newPass) * sizeof(wchar_t) + sizeof(wchar_t);
+ cred.CredentialBlobSize = DWORD(mir_wstrlen(param->newPass) * sizeof(wchar_t) + sizeof(wchar_t));
cred.CredentialBlob = (LPBYTE)param->newPass;
cred.Persist = CRED_PERSIST_LOCAL_MACHINE;
CredWrite(&cred, 0);