Skip to content

Commit 28355a2

Browse files
author
Denghui Yu
committed
fix sample code error, and some comment
1 parent 127af81 commit 28355a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

specs/MultiProfile.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
```

0 commit comments

Comments
 (0)