diff --git a/komorebi/src/windows_api.rs b/komorebi/src/windows_api.rs index 33935d94..b18277c7 100644 --- a/komorebi/src/windows_api.rs +++ b/komorebi/src/windows_api.rs @@ -130,11 +130,7 @@ macro_rules! impl_process_windows_crate_integer_wrapper_result { $( impl ProcessWindowsCrateResult<$deref> for $input { fn process(self) -> Result<$deref> { - if self.0 == 0 { - Ok(self.0) - } else { - Err(std::io::Error::last_os_error().into()) - } + Ok(self.0) } } )+