From 4da879856c5c1e27290e83951262eefd1038bd78 Mon Sep 17 00:00:00 2001 From: Jiahao Lu Date: Fri, 24 Sep 2021 15:23:50 +0800 Subject: [PATCH] Fix crash on WebView2 installation window --- windows/src/webview_install_form.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/src/webview_install_form.rs b/windows/src/webview_install_form.rs index 69344d4..7a40e40 100644 --- a/windows/src/webview_install_form.rs +++ b/windows/src/webview_install_form.rs @@ -100,7 +100,7 @@ impl WebViewInstallForm { lp_buffer, cb_buffer, 0, - std::mem::transmute::<_, Com::IBindStatusCallback>(&&BindStatusCallback::new( + Com::IBindStatusCallback::from(BindStatusCallback::new( progress_bar_h_wnd, )), ) {