Author: ekohl
Date: Wed Oct 29 22:17:23 2014
New Revision: 65109
URL:
http://svn.reactos.org/svn/reactos?rev=65109&view=rev
Log:
[NETAPI32]
NetUserModalsGet:
- Return the proper maximum password age.
- Remove dead code.
Modified:
trunk/reactos/dll/win32/netapi32/user.c
Modified: trunk/reactos/dll/win32/netapi32/user.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netapi32/user.c?…
==============================================================================
--- trunk/reactos/dll/win32/netapi32/user.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netapi32/user.c [iso-8859-1] Wed Oct 29 22:17:23 2014
@@ -3414,7 +3414,7 @@
umi0 = (PUSER_MODALS_INFO_0)*bufptr;
umi0->usrmod0_min_passwd_len = PasswordInfo->MinPasswordLength;
- umi0->usrmod0_max_passwd_age =
(ULONG)(PasswordInfo->MaxPasswordAge.QuadPart / 10000000);
+ umi0->usrmod0_max_passwd_age =
(ULONG)(-PasswordInfo->MaxPasswordAge.QuadPart / 10000000);
umi0->usrmod0_min_passwd_age =
DeltaTimeToSeconds(PasswordInfo->MinPasswordAge);
umi0->usrmod0_force_logoff =
@@ -3427,10 +3427,6 @@
switch (ServerRoleInfo->DomainServerRole)
{
-
- umi1->usrmod1_role = UAS_ROLE_STANDALONE;
- umi1->usrmod1_role = UAS_ROLE_MEMBER;
-
case DomainServerRolePrimary:
umi1->usrmod1_role = UAS_ROLE_PRIMARY;
break;