Skip to content

Commit

Permalink
Windows lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rbtcollins committed Aug 6, 2022
1 parent 40ce8ff commit d473e41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/win.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ use ntapi::ntioapi::{
use winapi::{
ctypes,
shared::{
minwindef::ULONG,
ntdef::{NULL, OBJECT_ATTRIBUTES, OBJ_CASE_INSENSITIVE, PLARGE_INTEGER, PVOID},
minwindef::{LPVOID, ULONG},
ntdef::{HANDLE, NULL, OBJECT_ATTRIBUTES, OBJ_CASE_INSENSITIVE, PLARGE_INTEGER, PVOID},
winerror::{ERROR_INVALID_PARAMETER, ERROR_NO_MORE_FILES},
},
um::{
Expand Down Expand Up @@ -573,9 +573,9 @@ impl<'a> ReadDirImpl<'a> {
// ```
let result = cvt::cvt(unsafe {
GetFileInformationByHandleEx(
self.d.as_raw_handle(),
self.d.as_raw_handle() as HANDLE,
class,
buffer.as_mut_ptr() as *mut c_void,
buffer.as_mut_ptr() as LPVOID,
buffer.len() as u32,
)
});
Expand Down

0 comments on commit d473e41

Please sign in to comment.