web-view icon indicating copy to clipboard operation
web-view copied to clipboard

webview_exit crash on win7 mshtml

Open lynnux opened this issue 4 years ago • 1 comments

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(); */
}

lynnux avatar Apr 15 '20 03:04 lynnux