mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:45:41 +00:00
fixed crash on shutdown
svn path=/trunk/; revision=11744
This commit is contained in:
parent
d23655f8c4
commit
c116c5fefe
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* $Id: winsta.c,v 1.66 2004/11/20 16:46:06 weiden Exp $
|
||||
* $Id: winsta.c,v 1.67 2004/11/21 13:02:02 weiden Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -806,7 +806,7 @@ IntGetWinStaObj(VOID)
|
|||
* just a temporary hack, this will be gone soon
|
||||
*/
|
||||
|
||||
if(PsGetWin32Thread()->Desktop != NULL)
|
||||
if(PsGetWin32Thread() != NULL && PsGetWin32Thread()->Desktop != NULL)
|
||||
{
|
||||
WinStaObj = PsGetWin32Thread()->Desktop->WindowStation;
|
||||
ObReferenceObjectByPointer(WinStaObj, KernelMode, ExWindowStationObjectType, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue