[USER32] Capture the security descriptor from the caller when creating a window station

When creating a window station with CreateWindowStationW, the function ignores the security descriptor provided by the caller and instead it uses whatever descriptor the system can find.
This commit is contained in:
George Bișoc 2022-03-27 20:01:19 +02:00
parent 878c2f4444
commit 65a72fb527
No known key found for this signature in database
GPG key ID: 688C4FBE25D7DEF6

View file

@ -104,7 +104,7 @@ CreateWindowStationW(
lpwinsta ? &WindowStationName : NULL,
OBJ_CASE_INSENSITIVE | OBJ_OPENIF,
hWindowStationsDir,
NULL);
lpsa ? lpsa->lpSecurityDescriptor : NULL);
/* Check if the handle should be inheritable */
if (lpsa && lpsa->bInheritHandle)