mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
[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:
parent
6bcb9bf333
commit
72a299ef71
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue