Skip to content

Commit

Permalink
Fixed bug in Windows 7 where window does not close after a call to we…
Browse files Browse the repository at this point in the history
…bview_exit (#229)
  • Loading branch information
superp00t authored and zserge committed Jan 23, 2019
1 parent 06035f0 commit 16c93bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion webview.h
Expand Up @@ -1653,7 +1653,12 @@ WEBVIEW_API void webview_dialog(struct webview *w,
}

WEBVIEW_API void webview_terminate(struct webview *w) { PostQuitMessage(0); }
WEBVIEW_API void webview_exit(struct webview *w) { OleUninitialize(); }

WEBVIEW_API void webview_exit(struct webview *w) {
DestroyWindow(w->priv.hwnd);
OleUninitialize();
}

WEBVIEW_API void webview_print_log(const char *s) { OutputDebugString(s); }

#endif /* WEBVIEW_WINAPI */
Expand Down

0 comments on commit 16c93bc

Please sign in to comment.