[go: nahoru, domu]

Skip to content

Commit

Permalink
IPlugWebView: Return early if no valid webview HWND
Browse files Browse the repository at this point in the history
fixes #1062

This fixes a crash in FL Studio if you rapidly close/reopen the plug-in
window with a double click
  • Loading branch information
Vector-Hector authored and olilarkin committed Jul 15, 2024
1 parent bb455a4 commit c9db1db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions IPlug/Extras/WebView/IPlugWebView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ void* IWebView::OpenWebView(void* pParent, float x, float y, float w, float h, f
mWebViewCtrlr = controller;
mWebViewCtrlr->get_CoreWebView2(&mWebViewWnd);
}

if (mWebViewWnd == nullptr) {
return S_OK;
}

mWebViewCtrlr->put_IsVisible(mShowOnLoad);

Expand Down

0 comments on commit c9db1db

Please sign in to comment.