Gerald Pfeifer : netapi32: Remove one tests and simplify another based on the limited range of unsigned .
Alexandre Julliard
julliard at winehq.org
Mon Nov 26 08:16:24 CST 2007
Module: wine
Branch: master
Commit: 7b80410646ae5eec1d3346bd1bca1cb94becd80c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7b80410646ae5eec1d3346bd1bca1cb94becd80c
Author: Gerald Pfeifer <gerald at pfeifer.com>
Date: Thu Nov 22 01:10:33 2007 +0100
netapi32: Remove one tests and simplify another based on the limited range of unsigned.
---
dlls/netapi32/tests/apibuf.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/netapi32/tests/apibuf.c b/dlls/netapi32/tests/apibuf.c
index 751081e..920be6a 100644
--- a/dlls/netapi32/tests/apibuf.c
+++ b/dlls/netapi32/tests/apibuf.c
@@ -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-cvs
mailing list