1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 10:43:35 +00:00

[PM-5356][deps] Platform: Update Rust crate windows to v0.52.0 (#7287)

* [deps] Platform: Update Rust crate windows to v0.52.0

* Fix updated CRED_TYPE

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel García <dani-garcia@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2024-01-08 14:37:32 +01:00
committed by GitHub
parent 2a338319ea
commit 85febe22e0
3 changed files with 76 additions and 19 deletions

View File

@@ -22,7 +22,7 @@ pub fn get_password<'a>(service: &str, account: &str) -> Result<String> {
let result = unsafe {
CredReadW(
PCWSTR(target_name.as_ptr()),
CRED_TYPE_GENERIC.0,
CRED_TYPE_GENERIC,
CRED_FLAGS_NONE,
credential_ptr,
)
@@ -55,7 +55,7 @@ pub fn get_password_keytar<'a>(service: &str, account: &str) -> Result<String> {
let result = unsafe {
CredReadW(
PCWSTR(target_name.as_ptr()),
CRED_TYPE_GENERIC.0,
CRED_TYPE_GENERIC,
CRED_FLAGS_NONE,
credential_ptr,
)
@@ -114,7 +114,7 @@ pub fn delete_password(service: &str, account: &str) -> Result<()> {
unsafe {
CredDeleteW(
PCWSTR(target_name.as_ptr()),
CRED_TYPE_GENERIC.0,
CRED_TYPE_GENERIC,
CRED_FLAGS_NONE,
)?
};