diff --git a/SampleApps/WebView2APISample/ScenarioFileSystemHandleShare.cpp b/SampleApps/WebView2APISample/ScenarioFileSystemHandleShare.cpp index 4dc33c24..5a29e8f1 100644 --- a/SampleApps/WebView2APISample/ScenarioFileSystemHandleShare.cpp +++ b/SampleApps/WebView2APISample/ScenarioFileSystemHandleShare.cpp @@ -34,16 +34,17 @@ ScenarioFileSystemHandleShare::ScenarioFileSystemHandleShare(AppWindow* appWindo CHECK_FEATURE_RETURN_HRESULT(webview24); wil::com_ptr environment = appWindow->GetWebViewEnvironment(); - wil::com_ptr environment_staging14 = - environment.try_query(); - CHECK_FEATURE_RETURN_HRESULT(environment_staging14); + wil::com_ptr + environment_experimental14 = + environment.try_query(); + CHECK_FEATURE_RETURN_HRESULT(environment_experimental14); wil::com_ptr rootHandle; - CHECK_FAILURE(environment_staging14->CreateWebFileSystemDirectoryHandle( + CHECK_FAILURE(environment_experimental14->CreateWebFileSystemDirectoryHandle( L"C:\\", COREWEBVIEW2_FILE_SYSTEM_HANDLE_PERMISSION_READ_ONLY, &rootHandle)); wil::com_ptr webObjectCollection; IUnknown* webObjects[] = {rootHandle.get()}; - CHECK_FAILURE(environment_staging14->CreateObjectCollection( + CHECK_FAILURE(environment_experimental14->CreateObjectCollection( ARRAYSIZE(webObjects), webObjects, &webObjectCollection)); wil::com_ptr webObjectCollectionView = webObjectCollection.try_query(); @@ -70,4 +71,4 @@ ScenarioFileSystemHandleShare::ScenarioFileSystemHandleShare(AppWindow* appWindo ScenarioFileSystemHandleShare::~ScenarioFileSystemHandleShare() { CHECK_FAILURE(m_webView->remove_WebMessageReceived(m_navigationCompletedToken)); -} \ No newline at end of file +}