Author: gbrunmar Date: Sun May 18 06:41:32 2008 New Revision: 33575
URL: http://svn.reactos.org/svn/reactos?rev=33575&view=rev Log: Reminder to self: Don't rely on MSDN. This should get taskmgr working again.
Modified: trunk/reactos/dll/win32/user32/windows/dialog.c
Modified: trunk/reactos/dll/win32/user32/windows/dialog.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/di... ============================================================================== --- trunk/reactos/dll/win32/user32/windows/dialog.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/user32/windows/dialog.c [iso-8859-1] Sun May 18 06:41:32 2008 @@ -1684,7 +1684,7 @@ SetLastError(ERROR_RESOURCE_NAME_NOT_FOUND); return -1; } - if (!IsWindow(hWndParent)) + if (hWndParent != NULL && !IsWindow(hWndParent)) { SetLastError(ERROR_INVALID_WINDOW_HANDLE); return 0; @@ -1717,7 +1717,7 @@ SetLastError(ERROR_RESOURCE_NAME_NOT_FOUND); return -1; } - if (!IsWindow(hWndParent)) + if (hWndParent != NULL && !IsWindow(hWndParent)) { SetLastError(ERROR_INVALID_WINDOW_HANDLE); return 0;