This actually used to work due to the work csrss does setting up low memory

space.  This fixes it to pass a QOS parameter as it isn't optional.

svn path=/trunk/; revision=38798
This commit is contained in:
Art Yerkes 2009-01-16 21:03:10 +00:00
parent 9ae3084028
commit 12f2920bba

View file

@ -21,12 +21,18 @@ CsrInit(void)
NTSTATUS Status;
UNICODE_STRING PortName;
ULONG ConnectInfoLength;
SECURITY_QUALITY_OF_SERVICE Qos;
RtlInitUnicodeString(&PortName, L"\\Windows\\ApiPort");
ConnectInfoLength = 0;
Qos.Length = sizeof(Qos);
Qos.ImpersonationLevel = SecurityDelegation;
Qos.ContextTrackingMode = SECURITY_STATIC_TRACKING;
Qos.EffectiveOnly = FALSE;
Status = ZwConnectPort(&WindowsApiPort,
&PortName,
NULL,
&Qos,
NULL,
NULL,
NULL,