fix winapi import

This commit is contained in:
Eh2406 2018-02-21 14:26:29 -05:00
parent 98f17bcc56
commit 7a564576f1

View File

@ -28,8 +28,8 @@ fn enabled() -> bool {
let me = processthreadsapi::GetCurrentProcess();
let mut ret = 0;
let r = jobapi::IsProcessInJob(me, 0 as *mut _, &mut ret);
assert!(r != 0);
if ret == winapi::shared::minwindef::FALSE {
assert_ne!(r, 0);
if ret == ::winapi::shared::minwindef::FALSE {
return true
}