Skip to content

Commit

Permalink
Merge pull request #20 from dylni/dependabot/cargo/windows-sys-0.59
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Aug 3, 2024
2 parents 8164f5a + ab21064 commit 25a8b60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ serde = { version = "1.0", optional = true }
uniquote = { version = "4.0", optional = true }

[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.52", features = ["Win32_Storage_FileSystem"] }
windows-sys = { version = "0.59", features = ["Win32_Storage_FileSystem"] }

[dev-dependencies]
bincode = "1.0"
tempfile = "3.0"

[target.'cfg(windows)'.dev-dependencies]
windows-sys = { version = "0.52", features = ["Win32_Foundation"] }
windows-sys = { version = "0.59", features = ["Win32_Foundation"] }

[target.'cfg(not(windows))'.dev-dependencies]
libc = "0.2"
Expand Down
3 changes: 2 additions & 1 deletion src/windows/localize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::mem;
use std::os::windows::ffi::OsStrExt;
use std::os::windows::ffi::OsStringExt;
use std::path::Path;
use std::ptr;

use windows_sys::Win32::UI::Shell::SHGetFileInfoW;
use windows_sys::Win32::UI::Shell::SHFILEINFOW;
Expand All @@ -16,7 +17,7 @@ pub(crate) fn name(path: &Path) -> Option<OsString> {
path.push(0);

let mut path_info = SHFILEINFOW {
hIcon: 0,
hIcon: ptr::null_mut(),
iIcon: 0,
dwAttributes: 0,
szDisplayName: [0; 260],
Expand Down

0 comments on commit 25a8b60

Please sign in to comment.