dlls/advapi32/tests/security.c - Bugfix in test!

Jakob Eriksson jakov at vmlinux.org
Wed Mar 16 03:34:26 CST 2005


http://test.winehq.org/data/200503151000/nt4_PaulVriensNT4Srv/advapi32:security.txt

The check for no privilege in GetLastError didn't actually do anything.
Now it does.


regards,
Jakob

-------------- next part --------------
Index: dlls/advapi32/tests/security.c
===================================================================
RCS file: /home/wine/wine/dlls/advapi32/tests/security.c,v
retrieving revision 1.12
diff -u -r1.12 security.c
--- dlls/advapi32/tests/security.c	14 Mar 2005 17:20:58 -0000	1.12
+++ dlls/advapi32/tests/security.c	16 Mar 2005 09:32:28 -0000
@@ -289,8 +289,8 @@
         luid.LowPart = i;
         cchName = sizeof(buf);
         ret = pLookupPrivilegeNameA(NULL, &luid, buf, &cchName);
-        ok( ret && GetLastError() != ERROR_NO_SUCH_PRIVILEGE,
-         "LookupPrivilegeNameA(0.%ld) failed: %ld\n", i, GetLastError());
+	if (GetLastError() != ERROR_NO_SUCH_PRIVILEGE)
+            ok( ret, "LookupPrivilegeNameA(0.%ld) failed: %ld\n", i, GetLastError());
     }
     /* check a bogus LUID */
     luid.LowPart = 0xdeadbeef;


More information about the wine-patches mailing list