[NETAPI32]
authorEric Kohl <eric.kohl@reactos.org>
Tue, 17 Sep 2013 19:55:19 +0000 (19:55 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Tue, 17 Sep 2013 19:55:19 +0000 (19:55 +0000)
NetUserDel: Return the proper error code if no user could be found.

svn path=/trunk/; revision=60182

reactos/dll/win32/netapi32/user.c

index c92704c..291a3e5 100644 (file)
@@ -2350,7 +2350,7 @@ NetUserDel(LPCWSTR servername,
         {
             ERR("OpenUserByName failed (ApiStatus %lu)\n", ApiStatus);
             if (ApiStatus == ERROR_NONE_MAPPED)
-                ApiStatus = NERR_GroupNotFound;
+                ApiStatus = NERR_UserNotFound;
             goto done;
         }
     }