@@ -44,7 +44,7 @@ wil::com_ptr<ICoreWebView2FindConfiguration> AppWindow::InitializeFindConfigurat
4444
4545 // Get the Find interface.
4646 wil::com_ptr<ICoreWebView2Find> webView2Find;
47- CHECK_FAILURE(webView2_17->get_Find(&webView2find ));
47+ CHECK_FAILURE(webView2_17->get_Find(&webView2Find ));
4848
4949 return findConfiguration;
5050}
@@ -113,11 +113,11 @@ bool AppWindow::ExecuteFindWithCustomUI(const std::wstring& searchTerm)
113113 CHECK_FAILURE(webView2_17->get_Find(&webView2Find));
114114
115115 // Opt for using a custom UI for the find operation.
116- CHECK_FAILURE(webView2find ->put_UseCustomUI(true));
116+ CHECK_FAILURE(webView2Find ->put_UseCustomUI(true));
117117 CHECK_FAILURE(webView2find->put_ShouldHighlightAllMatches(true));
118118
119119 // Start the find operation with callback for completion.
120- CHECK_FAILURE(webView2find ->StartFind(
120+ CHECK_FAILURE(webView2Find ->StartFind(
121121 findConfiguration.get(),
122122 Callback<ICoreWebView2FindOperationCompletedHandler>(
123123 [this](HRESULT result, BOOL status) -> HRESULT
@@ -236,9 +236,9 @@ within a WebView2 control using the `GetActiveMatchIndex` method.
236236 auto webView2_17 = m_webView.try_query<ICoreWebView2_17>();
237237 CHECK_FEATURE_RETURN (webView2_17);
238238 wil::com_ptr<ICoreWebView2Find > webView2find;
239- CHECK_FAILURE(webView2_17->get_Find(&webView2find ));
239+ CHECK_FAILURE(webView2_17->get_Find(&webView2Find ));
240240 LONG activeMatchIndex;
241- CHECK_FAILURE(webView2find ->get_ActiveMatchIndex(&activeMatchIndex));
241+ CHECK_FAILURE(webView2Find ->get_ActiveMatchIndex(&activeMatchIndex));
242242
243243 // Update UI or handle activeMatchIndex as you wish
244244 // For example, you could show a message box
0 commit comments