No need continuing tests if no NetUserGetInfo

Jakob Eriksson jakov at vmlinux.org
Thu Mar 24 13:46:08 CST 2005


-------------- next part --------------
Index: dlls/netapi32/tests/access.c
===================================================================
RCS file: /home/wine/wine/dlls/netapi32/tests/access.c,v
retrieving revision 1.8
diff -u -r1.8 access.c
--- dlls/netapi32/tests/access.c	27 Dec 2004 17:04:38 -0000	1.8
+++ dlls/netapi32/tests/access.c	23 Mar 2005 14:26:57 -0000
@@ -77,7 +77,10 @@
 
     /* 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) +


More information about the wine-patches mailing list