mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 20:22:05 +00:00
[KERNEL32]: Don't try to acquire any privileges for now, as the API is unimplemented (restore back to original/broken behavior).
svn path=/trunk/; revision=52912
This commit is contained in:
parent
20c199a07b
commit
32ed1e22ae
1 changed files with 2 additions and 0 deletions
|
@ -380,6 +380,7 @@ SetLocalTime(IN CONST SYSTEMTIME *lpSystemTime)
|
|||
NewSystemTime.QuadPart += TimeZoneBias.QuadPart;
|
||||
|
||||
Status = RtlAcquirePrivilege(&Privilege, 1, 0, &State);
|
||||
Status = STATUS_SUCCESS;
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
Status = NtSetSystemTime(&NewSystemTime, NULL);
|
||||
|
@ -423,6 +424,7 @@ SetSystemTime(IN CONST SYSTEMTIME *lpSystemTime)
|
|||
}
|
||||
|
||||
Status = RtlAcquirePrivilege(&Privilege, 1, 0, &State);
|
||||
Status = STATUS_SUCCESS;
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
Status = NtSetSystemTime(&NewSystemTime, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue