1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

tail: adapt to windows-sys API change

This commit is contained in:
Daniel Hofstetter 2024-09-07 16:36:29 +02:00
parent 3df015bbf5
commit 4229771108

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,
}
}