From b87393f170d2343bdc38cfb59583e2fdd26917ab Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Wed, 29 Oct 2014 22:17:23 +0000 Subject: [PATCH] [NETAPI32] NetUserModalsGet: - Return the proper maximum password age. - Remove dead code. svn path=/trunk/; revision=65109 --- reactos/dll/win32/netapi32/user.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/reactos/dll/win32/netapi32/user.c b/reactos/dll/win32/netapi32/user.c index 8bbe930576a..c28e591937a 100644 --- a/reactos/dll/win32/netapi32/user.c +++ b/reactos/dll/win32/netapi32/user.c @@ -3414,7 +3414,7 @@ NetUserModalsGet(LPCWSTR servername, 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 @@ NetUserModalsGet(LPCWSTR servername, switch (ServerRoleInfo->DomainServerRole) { - - umi1->usrmod1_role = UAS_ROLE_STANDALONE; - umi1->usrmod1_role = UAS_ROLE_MEMBER; - case DomainServerRolePrimary: umi1->usrmod1_role = UAS_ROLE_PRIMARY; break; -- 2.17.1