[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.

svn path=/trunk/; revision=59138
This commit is contained in:
Eric Kohl 2013-06-01 23:42:01 +00:00
parent 6bcb9bf333
commit 72a299ef71

View file

@ -838,7 +838,7 @@ NetLocalGroupGetInfo(
&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 @@ NetLocalGroupGetInfo(
if (ApiStatus != NERR_Success)
{
ERR("OpenAliasByName failed (ApiStatus %lu)\n", ApiStatus);
if (ApiStatus == ERROR_NONE_MAPPED)
ApiStatus = NERR_GroupNotFound;
goto done;
}
}