Michael Stefaniuc : ntdll/tests: Avoid casting zero.
Module: wine Branch: master Commit: 6ea39eed8d2c603a1442828e97840c731a2caffd URL: http://source.winehq.org/git/wine.git/?a=commit;h=6ea39eed8d2c603a1442828e97... Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Sun Apr 15 21:58:50 2012 +0200 ntdll/tests: Avoid casting zero. --- dlls/ntdll/tests/rtl.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ntdll/tests/rtl.c b/dlls/ntdll/tests/rtl.c index 63bc813..5ba577d 100644 --- a/dlls/ntdll/tests/rtl.c +++ b/dlls/ntdll/tests/rtl.c @@ -1154,7 +1154,7 @@ static void test_RtlIpv4AddressToString(void) CHAR buffer[20]; CHAR *res; IN_ADDR ip; - DWORD len; + DWORD_PTR len; if (!pRtlIpv4AddressToStringA) { @@ -1175,7 +1175,7 @@ static void test_RtlIpv4AddressToString(void) res = pRtlIpv4AddressToStringA(&ip, NULL); ok( (res == (char *)~0) || - broken(res == (char *)0 + len), /* XP and w2003 */ + broken(res == (char *)len), /* XP and w2003 */ "got %p (expected ~0)\n", res); if (0) {
participants (1)
-
Alexandre Julliard