[NETAPI32] NetSessionEnum: UncClientName and username are optional

Do not fail if UncClientName and username are null.
This commit is contained in:
Eric Kohl 2022-05-07 16:53:26 +02:00
parent abe8f0ab1d
commit c70d755059

View file

@ -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;