Skip to content

Commit

Permalink
debug_assert system APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Jun 6, 2024
1 parent 6253f0f commit 0972775
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion crates/libs/windows/src/Windows/UI/UIAutomation/Core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ impl ICoreAutomationConnectionBoundObjectProvider {
let this = self;
unsafe {
let mut result__ = core::mem::zeroed();
_ = (windows_core::Interface::vtable(this).IsComThreadingRequired)(windows_core::Interface::as_raw(this), &mut result__);
let hresult__ = (windows_core::Interface::vtable(this).IsComThreadingRequired)(windows_core::Interface::as_raw(this), &mut result__);
debug_assert!(hresult__.0 == 0);
result__
}
}
Expand Down
6 changes: 4 additions & 2 deletions crates/libs/windows/src/Windows/UI/UIAutomation/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ impl AutomationConnection {
let this = self;
unsafe {
let mut result__ = core::mem::zeroed();
_ = (windows_core::Interface::vtable(this).IsRemoteSystem)(windows_core::Interface::as_raw(this), &mut result__);
let hresult__ = (windows_core::Interface::vtable(this).IsRemoteSystem)(windows_core::Interface::as_raw(this), &mut result__);
debug_assert!(hresult__.0 == 0);
result__
}
}
Expand Down Expand Up @@ -113,7 +114,8 @@ impl AutomationElement {
let this = self;
unsafe {
let mut result__ = core::mem::zeroed();
_ = (windows_core::Interface::vtable(this).IsRemoteSystem)(windows_core::Interface::as_raw(this), &mut result__);
let hresult__ = (windows_core::Interface::vtable(this).IsRemoteSystem)(windows_core::Interface::as_raw(this), &mut result__);
debug_assert!(hresult__.0 == 0);
result__
}
}
Expand Down

0 comments on commit 0972775

Please sign in to comment.