Michael Stefaniuc : netapi32/tests: Do not cast NULL.

Alexandre Julliard julliard at winehq.org
Mon Nov 3 09:06:57 CST 2008


Module: wine
Branch: master
Commit: df4cb76100bfcceb6805976464c1ca99cd234e3e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=df4cb76100bfcceb6805976464c1ca99cd234e3e

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Sun Nov  2 00:24:59 2008 +0100

netapi32/tests: Do not cast NULL.

---

 dlls/netapi32/tests/apibuf.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/netapi32/tests/apibuf.c b/dlls/netapi32/tests/apibuf.c
index 5589c18..fa29fc4 100644
--- a/dlls/netapi32/tests/apibuf.c
+++ b/dlls/netapi32/tests/apibuf.c
@@ -74,13 +74,13 @@ static void run_apibuf_tests(void)
     /* NULL-Pointer */
     /* NT: ERROR_INVALID_PARAMETER, lasterror is untouched) */
     SetLastError(0xdeadbeef);
-    res = pNetApiBufferAllocate(0, (LPVOID *)NULL);
+    res = pNetApiBufferAllocate(0, NULL);
     ok( (res == ERROR_INVALID_PARAMETER) && (GetLastError() == 0xdeadbeef),
         "returned %d with 0x%x (expected ERROR_INVALID_PARAMETER with "
         "0xdeadbeef)\n", res, GetLastError());
 
     SetLastError(0xdeadbeef);
-    res = pNetApiBufferAllocate(1024, (LPVOID *)NULL);    
+    res = pNetApiBufferAllocate(1024, NULL);
     ok( (res == ERROR_INVALID_PARAMETER) && (GetLastError() == 0xdeadbeef),
         "returned %d with 0x%x (expected ERROR_INVALID_PARAMETER with "
         "0xdeadbeef)\n", res, GetLastError());




More information about the wine-cvs mailing list