Skip to content

Commit

Permalink
fix last broken isize cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Mythra committed Nov 25, 2024
1 parent 2edc59b commit 8817d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cat-dev/src/serial/underlying/sys/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ struct RegKey {
}
impl RegKey {
fn open(parent: HKEY, subpath: &CStr, rights: REG_SAM_FLAGS) -> IoResult<Self> {
let mut key: HKEY = HKEY(std::ptr::null_mut::<std::ffi::c_void>() as isize);
let mut key: HKEY = HKEY(std::ptr::null_mut::<std::ffi::c_void>());

unsafe {
RegOpenKeyExA(parent, PCSTR(subpath.as_ptr().cast()), 0, rights, &mut key)
Expand Down

0 comments on commit 8817d85

Please sign in to comment.