https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a7b52d6a44119ac6333e64dcd4600edefad7af3b

commit a7b52d6a44119ac6333e64dcd4600edefad7af3b
Author:     Eric Kohl <[email protected]>
AuthorDate: Mon Aug 27 00:12:44 2018 +0200
Commit:     Eric Kohl <[email protected]>
CommitDate: Mon Aug 27 00:12:44 2018 +0200

    [SAMSRV] Simplify the initialization of the account expiration time
---
 dll/win32/samsrv/samrpc.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/dll/win32/samsrv/samrpc.c b/dll/win32/samsrv/samrpc.c
index d5651b2236..2f3729d3eb 100644
--- a/dll/win32/samsrv/samrpc.c
+++ b/dll/win32/samsrv/samrpc.c
@@ -2512,10 +2512,10 @@ SamrCreateUserInDomain(IN SAMPR_HANDLE DomainHandle,
 
     /* Store the fixed domain attributes */
     Status = SampSetObjectAttribute(DomainObject,
-                           L"F",
-                           REG_BINARY,
-                           &FixedDomainData,
-                           ulSize);
+                                    L"F",
+                                    REG_BINARY,
+                                    &FixedDomainData,
+                                    ulSize);
     if (!NT_SUCCESS(Status))
     {
         TRACE("failed with status 0x%08lx\n", Status);
@@ -2557,8 +2557,7 @@ SamrCreateUserInDomain(IN SAMPR_HANDLE DomainHandle,
     FixedUserData.LastLogon.QuadPart = 0;
     FixedUserData.LastLogoff.QuadPart = 0;
     FixedUserData.PasswordLastSet.QuadPart = 0;
-    FixedUserData.AccountExpires.LowPart = MAXULONG;
-    FixedUserData.AccountExpires.HighPart = MAXLONG;
+    FixedUserData.AccountExpires.QuadPart = MAXLONGLONG;
     FixedUserData.LastBadPasswordTime.QuadPart = 0;
     FixedUserData.UserId = ulRid;
     FixedUserData.PrimaryGroupId = DOMAIN_GROUP_RID_USERS;

Reply via email to