Skip to content

Commit 65a72fb

Browse files
committed
[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.
1 parent 878c2f4 commit 65a72fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

win32ss/user/user32/misc/winsta.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ CreateWindowStationW(
104104
lpwinsta ? &WindowStationName : NULL,
105105
OBJ_CASE_INSENSITIVE | OBJ_OPENIF,
106106
hWindowStationsDir,
107-
NULL);
107+
lpsa ? lpsa->lpSecurityDescriptor : NULL);
108108

109109
/* Check if the handle should be inheritable */
110110
if (lpsa && lpsa->bInheritHandle)

0 commit comments

Comments
 (0)