Skip to content

Commit

Permalink
Adjust to "windows-sys" API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dylni committed Aug 3, 2024
1 parent 5c60c48 commit ab21064
Showing 1 changed file with 2 additions and 1 deletion.
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 ab21064

Please sign in to comment.