https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a9f267778270a9c8585a1…
commit a9f267778270a9c8585a1a77ca1c2a892e08deb9
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sun Aug 26 21:26:31 2018 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sun Aug 26 21:26:31 2018 +0200
[SAMSRV] Simplify the initialization of the account expiration date for new user
accounts
---
dll/win32/samsrv/setup.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dll/win32/samsrv/setup.c b/dll/win32/samsrv/setup.c
index 43f224d248..eb7d0c9c24 100644
--- a/dll/win32/samsrv/setup.c
+++ b/dll/win32/samsrv/setup.c
@@ -389,8 +389,7 @@ SampSetupCreateUserAccount(HANDLE hDomainKey,
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 = ulRelativeId;
FixedUserData.PrimaryGroupId = DOMAIN_GROUP_RID_USERS;