No need continuing tests if no NetUserGetInfo.

This commit is contained in:
Jakob Eriksson 2005-03-25 10:24:45 +00:00 committed by Alexandre Julliard
parent e802bcb2e2
commit 53a4473334

View file

@ -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) +