Commit bc8a2b1f authored by Alexandre Julliard's avatar Alexandre Julliard

netapi32/tests: Don't crash if the administrators group is missing.

parent 7bc4c607
...@@ -332,7 +332,9 @@ static void run_localgroupgetinfo_tests(void) ...@@ -332,7 +332,9 @@ static void run_localgroupgetinfo_tests(void)
int i; int i;
status = pNetLocalGroupGetInfo(NULL, admins, 1, (LPBYTE *)&lgi); 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("Local groupname:%s\n", wine_dbgstr_w( lgi->lgrpi1_name));
trace("Comment: %s\n", wine_dbgstr_w( lgi->lgrpi1_comment)); trace("Comment: %s\n", wine_dbgstr_w( lgi->lgrpi1_comment));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment