mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user