[NETAPI32]
authorEric Kohl <eric.kohl@reactos.org>
Sat, 22 Feb 2014 13:55:29 +0000 (13:55 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sat, 22 Feb 2014 13:55:29 +0000 (13:55 +0000)
NetGetJoinInformation: Fix netapi32 wksta winetest crash.

svn path=/trunk/; revision=62288

reactos/dll/win32/netapi32/wksta.c

index 3512d31..4cef46c 100644 (file)
@@ -570,6 +570,9 @@ NET_API_STATUS NET_API_FUNCTION NetGetJoinInformation(
 {
     FIXME("Stub %s %p %p\n", wine_dbgstr_w(Server), Name, type);
 
+    if (Name == NULL || type == NULL)
+        return ERROR_INVALID_PARAMETER;
+
     *Name = NULL;
     *type = NetSetupUnknownStatus;