From c70d7550597ba6977f8546c17a1ecb6360281e39 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sat, 7 May 2022 16:53:26 +0200 Subject: [PATCH] [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;