dlls/netapi32/tests/apibuf.c -- simplify two tests
Gerald Pfeifer
gerald at pfeifer.com
Sat Nov 3 15:44:16 CDT 2007
More of the same, though as some of the other changes showed this is
really far from mechanical an endeavor.
Gerald
ChangeLog:
Remove one tests and simplify another based on the limited range of unsigned.
Index: dlls/netapi32/tests/apibuf.c
===================================================================
RCS file: /home/wine/wine/dlls/netapi32/tests/apibuf.c,v
retrieving revision 1.12
diff -u -3 -p -r1.12 apibuf.c
--- dlls/netapi32/tests/apibuf.c 23 Mar 2007 13:37:47 -0000 1.12
+++ dlls/netapi32/tests/apibuf.c 3 Nov 2007 20:40:47 -0000
@@ -58,7 +58,6 @@ static void run_apibuf_tests(void)
ok(pNetApiBufferFree(p) == NERR_Success, "Freed\n");
ok(pNetApiBufferSize(p, &dwSize) == NERR_Success, "Got size\n");
- ok(dwSize >= 0, "The size\n");
ok(pNetApiBufferSize(NULL, &dwSize) == ERROR_INVALID_PARAMETER, "Error for NULL pointer\n");
/* border reallocate cases */
@@ -72,7 +71,7 @@ static void run_apibuf_tests(void)
ok(pNetApiBufferAllocate(0, (LPVOID *)&p) == NERR_Success,
"Reserved memory\n");
ok(pNetApiBufferSize(p, &dwSize) == NERR_Success, "Got size\n");
- ok((dwSize >= 0) && (dwSize < 0xFFFFFFFF),"The size of the 0-length buffer\n");
+ ok(dwSize < 0xFFFFFFFF, "The size of the 0-length buffer\n");
ok(pNetApiBufferFree(p) == NERR_Success, "Freed\n");
/* NULL-Pointer */
More information about the wine-patches
mailing list