web-view
web-view copied to clipboard
webview_exit crash on win7 mshtml
Env: win7 64, toolchain: x86_64-pc-windows-msvc, try example dialog
and click Exit
will get crash, but click the close button on title is ok. The below code patch seems work:
WEBVIEW_API void webview_exit(webview_t w) {
struct mshtml_webview* wv = (struct mshtml_webview*)w;
/* DestroyWindow(wv->hwnd); */
PostMessage(wv->hwnd, WM_DESTROY, 0, 0);
/* OleUninitialize(); */
}