From aca6b75b1461c1cf53654023a9d8b6a19648c268 Mon Sep 17 00:00:00 2001 From: Thomas Muntaner Date: Mon, 28 Feb 2022 09:51:31 +0100 Subject: [PATCH] Updated windows to 0.33 --- Cargo.toml | 2 +- src/wincred/client.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 67c9cc3..fd3e878 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ anyhow = "1" widestring = "0.5" [target.'cfg(target_os = "windows")'.dependencies.windows] -version = "^0.32" +version = "^0.33" features = [ "Win32_Foundation", "Win32_Security_Credentials", diff --git a/src/wincred/client.rs b/src/wincred/client.rs index 25849ae..41eaeff 100644 --- a/src/wincred/client.rs +++ b/src/wincred/client.rs @@ -7,6 +7,7 @@ use anyhow::{anyhow, Result}; use std::ffi::c_void; use widestring::{U16CString, U16String}; +use windows::core::{PCWSTR, PWSTR}; use windows::Win32::{Foundation::*, Security::Credentials::*, System::SystemInformation::*}; // @@ -85,7 +86,7 @@ impl<'a> WincredClient<'a> { // // CredReadW( - PWSTR(target_ptr as *mut u16), + PCWSTR(target_ptr as *mut u16), CRED_TYPE_GENERIC, CRED_FLAG_NONE, credential_ptr,