Author: jimtabor
Date: Thu Jul 10 06:19:24 2008
New Revision: 34407
URL:
http://svn.reactos.org/svn/reactos?rev=34407&view=rev
Log:
Need to make safe, check for zero after retrieving desktop pointer.
Modified:
trunk/reactos/dll/win32/user32/misc/desktop.c
Modified: trunk/reactos/dll/win32/user32/misc/desktop.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/misc/desk…
==============================================================================
--- trunk/reactos/dll/win32/user32/misc/desktop.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/misc/desktop.c [iso-8859-1] Thu Jul 10 06:19:24 2008
@@ -705,7 +705,8 @@
{
PDESKTOP pdi;
pdi = GetThreadDesktopInfo();
- return pdi->hShellWindow;
+ if (pdi) return pdi->hShellWindow;
+ return NULL;
}