tail: adapt to windows-sys API change

This commit is contained in:
Daniel Hofstetter
2024-09-07 16:49:25 +02:00
parent 3df015bbf5
commit 4229771108
+1 -1
View File
@@ -21,7 +21,7 @@ impl ProcessChecker {
let FALSE: BOOL = 0;
let h = unsafe { OpenProcess(PROCESS_SYNCHRONIZE, FALSE, process_id) };
Self {
dead: h == 0,
dead: h.is_null(),
handle: h,
}
}