Skip to content

Commit 7e4e76b

Browse files
author
Jason Stephen
authored
Update Appearance.md
1 parent 5926ab7 commit 7e4e76b

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

specs/Appearance.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ bool ViewComponent::SetAppearance(COREWEBVIEW2_APPEARANCE_KIND value)
2121
wil::com_ptr<ICoreWebView2StagingController2> webViewStagingController2;
2222

2323
m_appWindow->GetWebViewController()->QueryInterface(IID_PPV_ARGS(&webViewStagingController2));
24-
CHECK_FEATURE_RETURN(webViewStagingController2);
25-
26-
webViewStagingController2->put_Appearance(value);
27-
28-
return true;
24+
if (webViewStagingController2)
25+
{
26+
CHECK_FAILURE(webViewStagingController2->put_Appearance(value));
27+
}
2928
}
3029

3130
```

0 commit comments

Comments
 (0)