Skip to content

Commit

Permalink
fix(windows): ensure result processor is type-agnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
LGUG2Z committed Apr 21, 2022
1 parent 1e69c65 commit a10b13c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion komorebi/src/windows_api.rs
Expand Up @@ -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)
Expand Down

0 comments on commit a10b13c

Please sign in to comment.