[BROWSEUI][SHELL32] Ignore navigation requests during browser destruction (#7161)

PR #7141 causes calls to IShellBrowser::BrowseObject while the shell browser is in the middle of destruction and the ShellView ListView has already been destroyed and DefView is not prepared for this.
This commit is contained in:
Whindmar Saksit 2024-07-22 21:25:58 +02:00 committed by GitHub
parent f6a25d48d5
commit 6219a1abe5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View file

@ -3227,6 +3227,8 @@ HRESULT CDefView::LoadViewState()
HRESULT CDefView::SaveViewState(IStream *pStream)
{
if (!m_ListView.m_hWnd)
return E_UNEXPECTED;
int sortcol = MapListColumnToFolderColumn(m_sortInfo.ListColumn);
PERSISTCLASSICVIEWSTATE cvs;
cvs.SortColId = sortcol >= 0 ? (WORD)sortcol : 0;