Skip to content

Commit

Permalink
fix: cast handle to the windows crate HANDLE (#332)
Browse files Browse the repository at this point in the history
This isn't necessary for windows-sys 0.59, but is for windows-sys 0.52.

fixes #331
  • Loading branch information
Stebalien authored Feb 17, 2025
1 parent 6e7d167 commit 78309ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file/imp/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn delete_open_file(f: &File) -> io::Result<()> {
Flags: FILE_DISPOSITION_FLAG_DELETE | FILE_DISPOSITION_FLAG_POSIX_SEMANTICS,
};
if SetFileInformationByHandle(
f.as_raw_handle(),
f.as_raw_handle() as HANDLE,
FileDispositionInfoEx,
&info as *const _ as *const _,
std::mem::size_of::<FILE_DISPOSITION_INFO_EX>() as u32,
Expand Down

0 comments on commit 78309ed

Please sign in to comment.