diff --git a/keychain_win.cpp b/keychain_win.cpp index 3d79ff2..4edd92e 100644 --- a/keychain_win.cpp +++ b/keychain_win.cpp @@ -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(L"QtKeychain"); cred.Type = CRED_TYPE_GENERIC; cred.TargetName = name; cred.CredentialBlobSize = data.size();