diff --git a/win32ss/user/user32/misc/winsta.c b/win32ss/user/user32/misc/winsta.c index 7308ad14619..111d7dec37a 100644 --- a/win32ss/user/user32/misc/winsta.c +++ b/win32ss/user/user32/misc/winsta.c @@ -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)