From 78b163c35091b327cc9be6f9f9af0b4f1899830b Mon Sep 17 00:00:00 2001 From: Albert Date: Tue, 18 Mar 2025 13:52:42 -0400 Subject: [PATCH] Win32 - Up WebView Controller Version --- src/webui.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/webui.c b/src/webui.c index 74be5381..49d1f0c8 100644 --- a/src/webui.c +++ b/src/webui.c @@ -182,7 +182,7 @@ typedef struct webui_event_inf_t { typedef struct _webui_wv_win32_t { // Win32 WebView ICoreWebView2Environment* webviewEnvironment; - ICoreWebView2Controller* webviewController; + ICoreWebView2Controller2* webviewController; ICoreWebView2* webviewWindow; HWND hwnd; void* titleChangedHandler; @@ -11043,7 +11043,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved) { HRESULT STDMETHODCALLTYPE CreateWebViewControllerHandler_Invoke( ICoreWebView2CreateCoreWebView2ControllerCompletedHandler* This, HRESULT result, - ICoreWebView2Controller* controller + ICoreWebView2Controller2* controller ); HRESULT STDMETHODCALLTYPE QueryInterfaceEnvironment( @@ -11168,7 +11168,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved) { HRESULT STDMETHODCALLTYPE CreateWebViewControllerHandler_Invoke( ICoreWebView2CreateCoreWebView2ControllerCompletedHandler* This, HRESULT result, - ICoreWebView2Controller* controller) { + ICoreWebView2Controller2* controller) { CreateWebViewControllerHandler* handler = (CreateWebViewControllerHandler*)This; _webui_wv_win32_t* webView = handler->webView; if (SUCCEEDED(result) && controller != NULL) {