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)
178
178
{
179
179
wil::com_ptr<ICoreWebView2Profile > profile;
180
180
CHECK_FAILURE(webview7->get_Profile(&profile));
181
- auto profile2 = profile.try_query<ICoreWebView2StagingProfile4 >;
181
+ auto profile2 = profile.try_query<ICoreWebView2StagingProfile4 >() ;
182
182
if (profile2)
183
183
{
184
184
CHECK_FAILURE(profile2->Delete());
@@ -370,8 +370,8 @@ interface ICoreWebView2Profile3 : ICoreWebView2Profile2 {
370
370
/// asynchronously exit with the reason:`COREWEBVIEW2_PROCESS_FAILED_REASON_PROFILE_DELETED`.
371
371
/// See 'COREWEBVIEW2_PROCESS_FAILED_REASON::COREWEBVIEW2_PROCESS_FAILED_REASON_PROFILE_DELETED'
372
372
/// 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.
375
375
HRESULT Delete();
376
376
}
377
377
```
You can’t perform that action at this time.
0 commit comments