Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion audioipc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ version = "0.35"
default-features = false

[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.52", features = [
windows-sys = { version = "0.61", features = [
"Win32_Foundation",
"Win32_Security",
"Win32_Storage_FileSystem",
Expand Down
2 changes: 1 addition & 1 deletion audioipc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ pub(crate) unsafe fn close_target_handle(
let ok = DuplicateHandle(
target_process,
target_handle_to_close as _,
0,
std::ptr::null_mut(),
std::ptr::null_mut(),
0,
FALSE,
Expand Down
2 changes: 1 addition & 1 deletion ipctest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ log = "0.4"
libc = "0.2"

[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.52", features = [
windows-sys = { version = "0.61", features = [
"Win32_Foundation",
"Win32_System_Threading",
] }
4 changes: 2 additions & 2 deletions ipctest/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ fn run(wait_for_debugger: bool) -> Result<()> {
// Duplicate the handle into the child process and send the value via stdin.
let client_handle = unsafe {
let child_process = OpenProcess(PROCESS_DUP_HANDLE, FALSE, child_pid);
assert!(child_process != 0, "OpenProcess failed");
assert!(!child_process.is_null(), "OpenProcess failed");

let mut target_handle: HANDLE = 0;
let mut target_handle: HANDLE = std::ptr::null_mut();
let ok = DuplicateHandle(
GetCurrentProcess(),
fd as HANDLE,
Expand Down
4 changes: 2 additions & 2 deletions ipctest/tests/e2e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ fn multi_process_client_test() {

let client_handle = unsafe {
let child_process = OpenProcess(PROCESS_DUP_HANDLE, FALSE, child_pid);
assert!(child_process != 0, "OpenProcess failed");
assert!(!child_process.is_null(), "OpenProcess failed");

let mut target_handle: HANDLE = 0;
let mut target_handle: HANDLE = std::ptr::null_mut();
let ok = DuplicateHandle(
GetCurrentProcess(),
fd as HANDLE,
Expand Down
Loading