Merge pull request #84 from stinny/patch-2

Fix compilation error on MSVC2015.
This commit is contained in:
Frank Osterfeld 2016-08-12 10:12:37 +02:00 committed by GitHub
commit ccb73ad80e
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ void WritePasswordJobPrivate::scheduledStart() {
LPWSTR name = (LPWSTR)key.utf16();
memset(&cred, 0, sizeof(cred));
cred.Comment = L"QtKeychain";
cred.Comment = const_cast<wchar_t*>(L"QtKeychain");
cred.Type = CRED_TYPE_GENERIC;
cred.TargetName = name;
cred.CredentialBlobSize = data.size();