Skip to content

Commit 78309ed

Browse files
authored
fix: cast handle to the windows crate HANDLE (#332)
This isn't necessary for windows-sys 0.59, but is for windows-sys 0.52. fixes #331
1 parent 6e7d167 commit 78309ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/file/imp/windows.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fn delete_open_file(f: &File) -> io::Result<()> {
3131
Flags: FILE_DISPOSITION_FLAG_DELETE | FILE_DISPOSITION_FLAG_POSIX_SEMANTICS,
3232
};
3333
if SetFileInformationByHandle(
34-
f.as_raw_handle(),
34+
f.as_raw_handle() as HANDLE,
3535
FileDispositionInfoEx,
3636
&info as *const _ as *const _,
3737
std::mem::size_of::<FILE_DISPOSITION_INFO_EX>() as u32,

0 commit comments

Comments
 (0)