Mercurial > dwindows
comparison win/edge.cpp @ 2102:9a5dbda8f2ab
Win: Fix building with WebView2 SDK 0.9.538. More breaking changes Microsoft?
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 13 Jun 2020 18:23:04 +0000 |
parents | 94ea915bd917 |
children | 589896c07c91 |
comparison
equal
deleted
inserted
replaced
2101:07666f97412f | 2102:9a5dbda8f2ab |
---|---|
224 WebHost->put_IsVisible(TRUE); | 224 WebHost->put_IsVisible(TRUE); |
225 } | 225 } |
226 | 226 |
227 BOOL EdgeBrowser::Detect(VOID) | 227 BOOL EdgeBrowser::Detect(VOID) |
228 { | 228 { |
229 CreateCoreWebView2EnvironmentWithDetails(nullptr, nullptr, nullptr, | 229 CreateCoreWebView2EnvironmentWithOptions(nullptr, nullptr, nullptr, |
230 Callback<ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler>( | 230 Callback<ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler>( |
231 [this](HRESULT result, ICoreWebView2Environment* env) -> HRESULT { | 231 [this](HRESULT result, ICoreWebView2Environment* env) -> HRESULT { |
232 // Successfully created Edge environment, return TRUE | 232 // Successfully created Edge environment, return TRUE |
233 Env = env; | 233 Env = env; |
234 return S_OK; | 234 return S_OK; |