mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-17 06:11:21 +01:00
fix(windows): ensure result processor is type-agnostic
This commit is contained in:
1 parent
1e69c65c25
commit
a10b13c799
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user