Skip to content

Commit

Permalink
Update bindings and fix all the things
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed May 31, 2023
1 parent 78a9985 commit 8547537
Show file tree
Hide file tree
Showing 6 changed files with 204 additions and 123 deletions.
2 changes: 1 addition & 1 deletion src/host/wasapi/com.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl Drop for ComInitialized {
fn drop(&mut self) {
// Need to avoid calling CoUninitialize() if CoInitializeEx failed since it may have
// returned RPC_E_MODE_CHANGED - which is OK, see above.
if self.result >= 0 {
if self.result.is_ok() {
unsafe { CoUninitialize() };
}
}
Expand Down
Loading

0 comments on commit 8547537

Please sign in to comment.