https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2a6bccb4ce84092f4725e…
commit 2a6bccb4ce84092f4725e7bd64e33f09941522ea
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Sat Apr 11 08:45:23 2020 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Sat Apr 11 08:45:23 2020 +0900
[SHELL32] Make "Unable to get notification window" quiet
CORE-13950
---
dll/win32/shell32/shelldesktop/CChangeNotify.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dll/win32/shell32/shelldesktop/CChangeNotify.cpp
b/dll/win32/shell32/shelldesktop/CChangeNotify.cpp
index 34c11809381..af4825cdaf8 100644
--- a/dll/win32/shell32/shelldesktop/CChangeNotify.cpp
+++ b/dll/win32/shell32/shelldesktop/CChangeNotify.cpp
@@ -45,6 +45,12 @@ DoGetNewDeliveryWorker(void)
return s_hwndNewWorker;
HWND hwndShell = GetShellWindow();
+ if (hwndShell == NULL)
+ {
+ TRACE("GetShellWindow() returned NULL\n");
+ return NULL;
+ }
+
HWND hwndWorker = (HWND)SendMessageW(hwndShell, WM_GETDELIWORKERWND, 0, 0);
if (!IsWindow(hwndWorker))
{