Skip to content

Commit

Permalink
Updated windows to 0.33
Browse files Browse the repository at this point in the history
  • Loading branch information
tmuntaner committed Feb 28, 2022
1 parent 1ce6c9c commit aca6b75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/wincred/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*};

// <https://docs.microsoft.com/en-us/windows/win32/api/wincred/ns-wincred-credentialw#members>
Expand Down Expand Up @@ -85,7 +86,7 @@ impl<'a> WincredClient<'a> {
// <https://docs.microsoft.com/en-us/windows/win32/api/wincred/nf-wincred-credreadw>
// <https://microsoft.github.io/windows-docs-rs/doc/bindings/Windows/Win32/Security/Credentials/fn.CredReadW.html>
CredReadW(
PWSTR(target_ptr as *mut u16),
PCWSTR(target_ptr as *mut u16),
CRED_TYPE_GENERIC,
CRED_FLAG_NONE,
credential_ptr,
Expand Down

0 comments on commit aca6b75

Please sign in to comment.