mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 03:03:13 +00:00
[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:
parent
f6a25d48d5
commit
6219a1abe5
2 changed files with 9 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue