Author: ekohl
Date: Sat Jun 1 23:42:01 2013
New Revision: 59138
URL:
http://svn.reactos.org/svn/reactos?rev=59138&view=rev
Log:
[NETAPI32]
NetLocalGroupGetInfo: Fix a bug in the alias search code. The function should search the
account domain if no alias was found in the builtin domain, instead of returning an error.
Fail only if the desired alias can not be found in both domains.
Modified:
trunk/reactos/dll/win32/netapi32/local_group.c
Modified: trunk/reactos/dll/win32/netapi32/local_group.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netapi32/local_g…
==============================================================================
--- trunk/reactos/dll/win32/netapi32/local_group.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netapi32/local_group.c [iso-8859-1] Sat Jun 1 23:42:01 2013
@@ -838,7 +838,7 @@
&GroupName,
ALIAS_READ_INFORMATION,
&AliasHandle);
- if (ApiStatus != NERR_Success)
+ if (ApiStatus != NERR_Success && ApiStatus != ERROR_NONE_MAPPED)
{
ERR("OpenAliasByName failed (ApiStatus %lu)\n", ApiStatus);
goto done;
@@ -869,6 +869,8 @@
if (ApiStatus != NERR_Success)
{
ERR("OpenAliasByName failed (ApiStatus %lu)\n", ApiStatus);
+ if (ApiStatus == ERROR_NONE_MAPPED)
+ ApiStatus = NERR_GroupNotFound;
goto done;
}
}