From 3c03d4f45cf6e65e678b0ca87f8ec28d952b9d78 Mon Sep 17 00:00:00 2001 From: Albert Date: Wed, 19 Mar 2025 12:20:50 -0400 Subject: [PATCH] Fix GCC Warning - ICoreWebView2Controller --- src/webui.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/webui.c b/src/webui.c index b61aca20..4323e91f 100644 --- a/src/webui.c +++ b/src/webui.c @@ -183,7 +183,7 @@ typedef struct webui_event_inf_t { typedef struct _webui_wv_win32_t { // Win32 WebView ICoreWebView2Environment* webviewEnvironment; - ICoreWebView2Controller2* webviewController; + ICoreWebView2Controller* webviewController; ICoreWebView2* webviewWindow; HWND hwnd; void* titleChangedHandler; @@ -11063,7 +11063,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved) { HRESULT STDMETHODCALLTYPE CreateWebViewControllerHandler_Invoke( ICoreWebView2CreateCoreWebView2ControllerCompletedHandler* This, HRESULT result, - ICoreWebView2Controller2* controller + ICoreWebView2Controller* controller ); HRESULT STDMETHODCALLTYPE QueryInterfaceEnvironment( @@ -11188,7 +11188,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved) { HRESULT STDMETHODCALLTYPE CreateWebViewControllerHandler_Invoke( ICoreWebView2CreateCoreWebView2ControllerCompletedHandler* This, HRESULT result, - ICoreWebView2Controller2* controller) { + ICoreWebView2Controller* controller) { CreateWebViewControllerHandler* handler = (CreateWebViewControllerHandler*)This; _webui_wv_win32_t* webView = handler->webView; if (SUCCEEDED(result) && controller != NULL) {