We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5926ab7 commit 7e4e76bCopy full SHA for 7e4e76b
1 file changed
specs/Appearance.md
@@ -21,11 +21,10 @@ bool ViewComponent::SetAppearance(COREWEBVIEW2_APPEARANCE_KIND value)
21
wil::com_ptr<ICoreWebView2StagingController2> webViewStagingController2;
22
23
m_appWindow->GetWebViewController()->QueryInterface(IID_PPV_ARGS(&webViewStagingController2));
24
- CHECK_FEATURE_RETURN(webViewStagingController2);
25
-
26
- webViewStagingController2->put_Appearance(value);
27
28
- return true;
+ if (webViewStagingController2)
+ {
+ CHECK_FAILURE(webViewStagingController2->put_Appearance(value));
+ }
29
}
30
31
```
0 commit comments