ntdll/tests: Avoid casting zero.

This commit is contained in:
Michael Stefaniuc 2012-04-15 21:58:50 +02:00 committed by Alexandre Julliard
parent 7f293b00e8
commit 6ea39eed8d
1 changed files with 2 additions and 2 deletions

View File

@ -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) {