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)) {