From 8217ea0ba6b9684baf8d853d86a60f77c580bbad Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Wed, 5 Jun 2024 21:28:51 +0300 Subject: [PATCH] Update crates/nsis-process/src/lib.rs --- crates/nsis-process/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nsis-process/src/lib.rs b/crates/nsis-process/src/lib.rs index 7ca8667..4a77ba9 100644 --- a/crates/nsis-process/src/lib.rs +++ b/crates/nsis-process/src/lib.rs @@ -231,7 +231,7 @@ unsafe fn run_as_user(command: &str, arguments: &str) -> bool { } let mut proccess_id = 0; - if GetWindowThreadProcessId(hwnd, &mut proccess_id) == FALSE { + if GetWindowThreadProcessId(hwnd, &mut proccess_id) == FALSE as u32 { return false; }