Author: tfaber
Date: Sat Feb 7 11:11:37 2015
New Revision: 66188
URL:
http://svn.reactos.org/svn/reactos?rev=66188&view=rev
Log:
[WIN32K]
- Do not use an uninitialized variable in UserSetProcessWindowStation. Feel free to fix
this properly
Modified:
trunk/reactos/win32ss/user/ntuser/winsta.c
Modified: trunk/reactos/win32ss/user/ntuser/winsta.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/winsta…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/winsta.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/winsta.c [iso-8859-1] Sat Feb 7 11:11:37 2015
@@ -933,7 +933,7 @@
ppi->prpwinsta = NewWinSta;
ppi->hwinsta = hWindowStation;
- ppi->amwinsta = ObjectHandleInfo.GrantedAccess;
+ ppi->amwinsta = hWindowStation != NULL ? ObjectHandleInfo.GrantedAccess : 0;
ERR("WS : Granted Access %p\n",ppi->amwinsta);
if (RtlAreAllAccessesGranted(ppi->amwinsta, WINSTA_READSCREEN))