Skip to content

Commit

Permalink
deref
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed May 9, 2024
1 parent 9bbc0a9 commit 824843e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/samples/components/json_validator_winrt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ unsafe extern "system" fn DllGetActivationFactory(

let mut factory: Option<IActivationFactory> = None;

if name.read() == "Sample.JsonValidator" {
if *name == "Sample.JsonValidator" {
factory = Some(JsonValidatorFactory.into());
}

Expand Down
2 changes: 1 addition & 1 deletion crates/tests/component/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ unsafe extern "system" fn DllGetActivationFactory(
name: Ref<HSTRING>,
factory: RefMut<IActivationFactory>,
) -> HRESULT {
if name.read() == "test_component.Class" {
if *name == "test_component.Class" {
factory.write(Some(ClassFactory.into())).into()
} else {
_ = factory.write(None);
Expand Down

0 comments on commit 824843e

Please sign in to comment.