- Do not use an uninitialized variable in UserSetProcessWindowStation. Feel free to fix this properly

svn path=/trunk/; revision=66188
This commit is contained in:
Thomas Faber 2015-02-07 11:11:37 +00:00
parent 16c8f0601d
commit 008adec92d

View file

@ -933,7 +933,7 @@ UserSetProcessWindowStation(HWINSTA hWindowStation)
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))