https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c70d7550597ba6977f8546...
commit c70d7550597ba6977f8546c17a1ecb6360281e39 Author: Eric Kohl eric.kohl@reactos.org AuthorDate: Sat May 7 16:53:26 2022 +0200 Commit: Eric Kohl eric.kohl@reactos.org CommitDate: Sat May 7 16:54:04 2022 +0200
[NETAPI32] NetSessionEnum: UncClientName and username are optional
Do not fail if UncClientName and username are null. --- dll/win32/netapi32/srvsvc.c | 3 --- 1 file changed, 3 deletions(-)
diff --git a/dll/win32/netapi32/srvsvc.c b/dll/win32/netapi32/srvsvc.c index 79a58fc83b6..e820c0d94ad 100644 --- a/dll/win32/netapi32/srvsvc.c +++ b/dll/win32/netapi32/srvsvc.c @@ -663,9 +663,6 @@ NetSessionEnum( if (level > 2 && level != 10 && level != 502) return ERROR_INVALID_LEVEL;
- if (UncClientName == NULL || username == NULL) - return ERROR_INVALID_PARAMETER; - *bufptr = NULL; *entriesread = 0;