From 53a44733349eb8196c2369fd0e744e7a18179e15 Mon Sep 17 00:00:00 2001 From: Jakob Eriksson Date: Fri, 25 Mar 2005 10:24:45 +0000 Subject: [PATCH] No need continuing tests if no NetUserGetInfo. --- dlls/netapi32/tests/access.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/netapi32/tests/access.c b/dlls/netapi32/tests/access.c index fb77e285e1c..34de09df368 100644 --- a/dlls/netapi32/tests/access.c +++ b/dlls/netapi32/tests/access.c @@ -77,7 +77,10 @@ void run_usergetinfo_tests(void) /* Level 0 */ rc=pNetUserGetInfo(NULL, sAdminUserName, 0, (LPBYTE *)&ui0); - ok(rc == NERR_Success, "NetUserGetInfo: rc=%ld\n", rc); + if (rc != NERR_Success) { + trace ("Aborting usergetinfo_tests(). NetUserGetInfo: rc=%ld\n", rc); + return; + } ok(!lstrcmpW(sAdminUserName, ui0->usri0_name), "This is really user name\n"); pNetApiBufferSize(ui0, &dwSize); ok(dwSize >= (sizeof(USER_INFO_0) +