https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1b05c9586c1c90d37a4b4…
commit 1b05c9586c1c90d37a4b48778576ef5b8e860375
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sun Jun 9 14:50:07 2019 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sun Jun 9 14:50:07 2019 +0200
[NETAPI32] Do not try to set usriX_max_storage. Just ignore it.
---
dll/win32/netapi32/user.c | 42 +++++-------------------------------------
1 file changed, 5 insertions(+), 37 deletions(-)
diff --git a/dll/win32/netapi32/user.c b/dll/win32/netapi32/user.c
index 699ae839b8..3569d98d1f 100644
--- a/dll/win32/netapi32/user.c
+++ b/dll/win32/netapi32/user.c
@@ -1434,7 +1434,6 @@ SetUserInfo(SAM_HANDLE UserHandle,
PUSER_INFO_1013 UserInfo1013;
PUSER_INFO_1014 UserInfo1014;
PUSER_INFO_1017 UserInfo1017;
- PUSER_INFO_1018 UserInfo1018;
PUSER_INFO_1020 UserInfo1020;
PUSER_INFO_1024 UserInfo1024;
PUSER_INFO_1025 UserInfo1025;
@@ -1595,13 +1594,7 @@ SetUserInfo(SAM_HANDLE UserHandle,
}
UserAllInfo.WhichFields |= USER_ALL_ACCOUNTEXPIRES;
- if (UserInfo2->usri2_max_storage != USER_MAXSTORAGE_UNLIMITED)
- {
- if (parm_err != NULL)
- *parm_err = USER_MAX_STORAGE_PARMNUM;
- ApiStatus = ERROR_INVALID_PARAMETER;
- break;
- }
+ // usri2_max_storage ignored
if (UserInfo2->usri2_units_per_week > USHRT_MAX)
{
@@ -1712,13 +1705,7 @@ SetUserInfo(SAM_HANDLE UserHandle,
}
UserAllInfo.WhichFields |= USER_ALL_ACCOUNTEXPIRES;
- if (UserInfo3->usri3_max_storage != USER_MAXSTORAGE_UNLIMITED)
- {
- if (parm_err != NULL)
- *parm_err = USER_MAX_STORAGE_PARMNUM;
- ApiStatus = ERROR_INVALID_PARAMETER;
- break;
- }
+ // usri3_max_storage ignored
if (UserInfo3->usri3_units_per_week > USHRT_MAX)
{
@@ -1851,13 +1838,7 @@ SetUserInfo(SAM_HANDLE UserHandle,
}
UserAllInfo.WhichFields |= USER_ALL_ACCOUNTEXPIRES;
- if (UserInfo4->usri4_max_storage != USER_MAXSTORAGE_UNLIMITED)
- {
- if (parm_err != NULL)
- *parm_err = USER_MAX_STORAGE_PARMNUM;
- ApiStatus = ERROR_INVALID_PARAMETER;
- break;
- }
+ // usri4_max_storage ignored
if (UserInfo4->usri4_units_per_week > USHRT_MAX)
{
@@ -1987,13 +1968,7 @@ SetUserInfo(SAM_HANDLE UserHandle,
}
UserAllInfo.WhichFields |= USER_ALL_ACCOUNTEXPIRES;
- if (UserInfo22->usri22_max_storage != USER_MAXSTORAGE_UNLIMITED)
- {
- if (parm_err != NULL)
- *parm_err = USER_MAX_STORAGE_PARMNUM;
- ApiStatus = ERROR_INVALID_PARAMETER;
- break;
- }
+ // usri22_max_storage ignored
if (UserInfo22->usri22_units_per_week > USHRT_MAX)
{
@@ -2136,14 +2111,7 @@ SetUserInfo(SAM_HANDLE UserHandle,
break;
case 1018:
- UserInfo1018 = (PUSER_INFO_1018)UserInfo;
-
- if (UserInfo1018->usri1018_max_storage != USER_MAXSTORAGE_UNLIMITED)
- {
- if (parm_err != NULL)
- *parm_err = USER_MAX_STORAGE_PARMNUM;
- ApiStatus = ERROR_INVALID_PARAMETER;
- }
+ // usri1018_max_storage ignored
break;
case 1020: