From 72a299ef718f03068c0f49dc577512685e4daf1e Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sat, 1 Jun 2013 23:42:01 +0000 Subject: [PATCH] [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 --- reactos/dll/win32/netapi32/local_group.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/netapi32/local_group.c b/reactos/dll/win32/netapi32/local_group.c index 0c5bbea8005..5c956b038ef 100644 --- a/reactos/dll/win32/netapi32/local_group.c +++ b/reactos/dll/win32/netapi32/local_group.c @@ -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; } }