File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ HRESULT AppWindow::DeleteProfile(ICoreWebView2Controller* controller)
178178 {
179179 wil::com_ptr<ICoreWebView2Profile > profile;
180180 CHECK_FAILURE(webview7->get_Profile(&profile));
181- auto profile2 = profile.try_query<ICoreWebView2StagingProfile4 >;
181+ auto profile2 = profile.try_query<ICoreWebView2StagingProfile4 >() ;
182182 if (profile2)
183183 {
184184 CHECK_FAILURE(profile2->Delete());
@@ -370,8 +370,8 @@ interface ICoreWebView2Profile3 : ICoreWebView2Profile2 {
370370 /// asynchronously exit with the reason:`COREWEBVIEW2_PROCESS_FAILED_REASON_PROFILE_DELETED`.
371371 /// See 'COREWEBVIEW2_PROCESS_FAILED_REASON::COREWEBVIEW2_PROCESS_FAILED_REASON_PROFILE_DELETED'
372372 /// for more details. The profile directory on disk will be actually deleted when the browser
373- /// process exits. Profile creation will fail if you create a new profile with the same name
374- /// as a profile that is being deleted.
373+ /// process exits. Webview2 creation will fail with the HRESULT is ERROR_INVALID_STATE(0x8007139FL)
374+ /// if you create it with the same name as a profile that is being deleted.
375375 HRESULT Delete();
376376}
377377```
You can’t perform that action at this time.
0 commit comments