Index: include/reactos/subsys/csr/csrmsg.h =================================================================== --- include/reactos/subsys/csr/csrmsg.h (revision 59591) +++ include/reactos/subsys/csr/csrmsg.h (working copy) @@ -54,8 +54,6 @@ typedef struct _CSR_CONNECTION_INFO { ULONG Version; - ULONG Unknown; - HANDLE ObjectDirectory; PVOID SharedSectionBase; PVOID SharedSectionHeap; PVOID SharedSectionData; Index: subsystems/win32/csrsrv/api.c =================================================================== --- subsystems/win32/csrsrv/api.c (revision 59591) +++ subsystems/win32/csrsrv/api.c (working copy) @@ -157,22 +157,6 @@ /* Reference the Process */ CsrLockedReferenceProcess(CsrProcess); - /* Release the lock */ - CsrReleaseProcessLock(); - - /* Duplicate the Object Directory */ - Status = NtDuplicateObject(NtCurrentProcess(), - CsrObjectDirectory, - CsrProcess->ProcessHandle, - &ConnectInfo->ObjectDirectory, - 0, - 0, - DUPLICATE_SAME_ACCESS | - DUPLICATE_SAME_ATTRIBUTES); - - /* Acquire the lock */ - CsrAcquireProcessLock(); - /* Check for success */ if (NT_SUCCESS(Status)) { @@ -1051,7 +1035,7 @@ { Connected = FALSE; } _SEH2_END; - + if (!Connected) { DPRINT1("CSRSS: CsrConnectToUser failed\n");