From bc8a2b1fb96f91496f241726d7b9c3fc5b03b750 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 15 Jul 2011 09:59:26 +0200 Subject: [PATCH] netapi32/tests: Don't crash if the administrators group is missing. --- dlls/netapi32/tests/access.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/netapi32/tests/access.c b/dlls/netapi32/tests/access.c index e8324d39b91..9726c8d7b32 100644 --- a/dlls/netapi32/tests/access.c +++ b/dlls/netapi32/tests/access.c @@ -332,7 +332,9 @@ static void run_localgroupgetinfo_tests(void) int i; status = pNetLocalGroupGetInfo(NULL, admins, 1, (LPBYTE *)&lgi); - ok(status == NERR_Success, "NetLocalGroupGetInfo unexpectedly returned %d\n", status); + ok(status == NERR_Success || broken(status == NERR_GroupNotFound), + "NetLocalGroupGetInfo unexpectedly returned %d\n", status); + if (status != NERR_Success) return; trace("Local groupname:%s\n", wine_dbgstr_w( lgi->lgrpi1_name)); trace("Comment: %s\n", wine_dbgstr_w( lgi->lgrpi1_comment));