Disable debug messages.

svn path=/trunk/; revision=4918
This commit is contained in:
Eric Kohl 2003-06-17 10:52:56 +00:00
parent 21ef04df28
commit 79cd3ca256

View file

@ -1,4 +1,4 @@
/* $Id: security.c,v 1.8 2003/05/31 11:08:50 ekohl Exp $ /* $Id: security.c,v 1.9 2003/06/17 10:52:56 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -80,7 +80,7 @@ RtlAdjustPrivilege(IN ULONG Privilege,
HANDLE TokenHandle; HANDLE TokenHandle;
NTSTATUS Status; NTSTATUS Status;
DPRINT1("RtlAdjustPrivilege() called\n"); DPRINT ("RtlAdjustPrivilege() called\n");
if (CurrentThread) if (CurrentThread)
{ {
@ -102,6 +102,8 @@ RtlAdjustPrivilege(IN ULONG Privilege,
return Status; return Status;
} }
OldState.PrivilegeCount = 1;
NewState.PrivilegeCount = 1; NewState.PrivilegeCount = 1;
NewState.Privileges[0].Luid.LowPart = Privilege; NewState.Privileges[0].Luid.LowPart = Privilege;
NewState.Privileges[0].Luid.HighPart = 0; NewState.Privileges[0].Luid.HighPart = 0;
@ -134,7 +136,7 @@ RtlAdjustPrivilege(IN ULONG Privilege,
*Enabled = (OldState.Privileges[0].Attributes & SE_PRIVILEGE_ENABLED); *Enabled = (OldState.Privileges[0].Attributes & SE_PRIVILEGE_ENABLED);
} }
DPRINT1("RtlAdjustPrivilege() done\n"); DPRINT ("RtlAdjustPrivilege() done\n");
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }