From a10b13c799d50ee04dcae064567ef20818612aee Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Thu, 21 Apr 2022 13:59:14 -0700 Subject: [PATCH] fix(windows): ensure result processor is type-agnostic --- komorebi/src/windows_api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komorebi/src/windows_api.rs b/komorebi/src/windows_api.rs index 5e8756f1..ddcaae9f 100644 --- a/komorebi/src/windows_api.rs +++ b/komorebi/src/windows_api.rs @@ -130,7 +130,7 @@ macro_rules! impl_process_windows_crate_integer_wrapper_result { $( impl ProcessWindowsCrateResult<$deref> for $input { fn process(self) -> Result<$deref> { - if self == HWND(0) { + if self.0 == 0 { Err(std::io::Error::last_os_error().into()) } else { Ok(self.0)