diff --git a/dll/win32/browseui/shellfind/CFindFolder.cpp b/dll/win32/browseui/shellfind/CFindFolder.cpp index 1c254e75ab5..ea703158c30 100644 --- a/dll/win32/browseui/shellfind/CFindFolder.cpp +++ b/dll/win32/browseui/shellfind/CFindFolder.cpp @@ -937,6 +937,12 @@ STDMETHODIMP CFindFolder::MessageSFVCB(UINT uMsg, WPARAM wParam, LPARAM lParam) CComVariant searchBar(pwszGuid); return pWebBrowser2->ShowBrowserBar(&searchBar, NULL, NULL); } + case SFVM_WINDOWCLOSING: + { + m_shellFolderView = NULL; + m_shellBrowser = NULL; + return S_OK; + } case SFVM_GETCOMMANDDIR: { HRESULT hr = E_FAIL;