diff --git a/dll/win32/samsrv/setup.c b/dll/win32/samsrv/setup.c index 43f224d248a..eb7d0c9c249 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;