Skip to content

Commit 11d5cb8

Browse files
authored
[BROWSEUI] FindFolder must release the view and the browser (reactos#7529)
CORE-19780
1 parent df197bc commit 11d5cb8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dll/win32/browseui/shellfind/CFindFolder.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,12 @@ STDMETHODIMP CFindFolder::MessageSFVCB(UINT uMsg, WPARAM wParam, LPARAM lParam)
937937
CComVariant searchBar(pwszGuid);
938938
return pWebBrowser2->ShowBrowserBar(&searchBar, NULL, NULL);
939939
}
940+
case SFVM_WINDOWCLOSING:
941+
{
942+
m_shellFolderView = NULL;
943+
m_shellBrowser = NULL;
944+
return S_OK;
945+
}
940946
case SFVM_GETCOMMANDDIR:
941947
{
942948
HRESULT hr = E_FAIL;

0 commit comments

Comments
 (0)