[SHELL32] Properly destroy window

This commit is contained in:
Mark Jansen 2022-09-11 22:14:15 +02:00
parent a6b8d4f6f0
commit d0ba8fd4a3
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -246,7 +246,8 @@ HRESULT STDMETHODCALLTYPE CMenuSite::SetDeskBarSite(IUnknown *punkSite)
m_DeskBand = NULL;
m_WinEventHandler = NULL;
m_hWndBand = NULL;
m_hWnd = NULL;
if (m_hWnd)
DestroyWindow();
m_DeskBarSite = NULL;
}