https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d0ba8fd4a3f891ecdca37e1b914d03aa0c79650e
commit d0ba8fd4a3f891ecdca37e1b914d03aa0c79650e Author: Mark Jansen <mark.jan...@reactos.org> AuthorDate: Sun Sep 11 22:14:15 2022 +0200 Commit: Mark Jansen <mark.jan...@reactos.org> CommitDate: Mon Sep 12 20:00:39 2022 +0200 [SHELL32] Properly destroy window --- dll/win32/shell32/shellmenu/CMenuSite.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dll/win32/shell32/shellmenu/CMenuSite.cpp b/dll/win32/shell32/shellmenu/CMenuSite.cpp index 010408de073..6faf0fabb0c 100644 --- a/dll/win32/shell32/shellmenu/CMenuSite.cpp +++ b/dll/win32/shell32/shellmenu/CMenuSite.cpp @@ -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; }