[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:54:04 +02:00
parent abe8f0ab1d
commit c70d755059
-3
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;