https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0903c645a27e6ac55f5806...
commit 0903c645a27e6ac55f58068fa74183fb67512355 Author: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com AuthorDate: Thu Apr 9 08:19:47 2020 +0900 Commit: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com CommitDate: Thu Apr 9 08:19:47 2020 +0900
[SHELL32] Follow-up of #2432
Fixed hang of FireFox. --- dll/win32/shell32/shelldesktop/CChangeNotify.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dll/win32/shell32/shelldesktop/CChangeNotify.cpp b/dll/win32/shell32/shelldesktop/CChangeNotify.cpp index 83cb010eac7..8048a847ad6 100644 --- a/dll/win32/shell32/shelldesktop/CChangeNotify.cpp +++ b/dll/win32/shell32/shelldesktop/CChangeNotify.cpp @@ -7,7 +7,6 @@ #include "shelldesktop.h" #include "shlwapi_undoc.h" #include <atlsimpcoll.h> -#include <assert.h>
WINE_DEFAULT_DEBUG_CHANNEL(shcn);
@@ -295,7 +294,8 @@ CWorker::WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
BOOL CWorker::CreateWorker(HWND hwndParent, DWORD dwExStyle, DWORD dwStyle) { - assert(m_hWnd == NULL); + if (::IsWindow(m_hWnd)) + ::DestroyWindow(m_hWnd); m_hWnd = SHCreateWorkerWindowW(WindowProc, hwndParent, dwExStyle, dwStyle, NULL, (LONG_PTR)this); return m_hWnd != NULL;