Commit d341cca6 authored by Alexandre Julliard's avatar Alexandre Julliard

ws2_32/tests: Avoid sizeof in traces.

parent eae1898a
...@@ -1296,7 +1296,7 @@ static void test_WSAAddressToStringA(void) ...@@ -1296,7 +1296,7 @@ static void test_WSAAddressToStringA(void)
ok( !ret, "WSAAddressToStringA() failed unexpectedly: %d\n", WSAGetLastError() ); ok( !ret, "WSAAddressToStringA() failed unexpectedly: %d\n", WSAGetLastError() );
ok( !strcmp( address, expect1 ), "Expected: %s, got: %s\n", expect1, address ); ok( !strcmp( address, expect1 ), "Expected: %s, got: %s\n", expect1, address );
ok( len == sizeof( expect1 ), "Expected size to be %d, got %d\n", sizeof( expect1 ), len); ok( len == sizeof( expect1 ), "Got size %d\n", len);
len = sizeof(address); len = sizeof(address);
...@@ -1330,7 +1330,7 @@ static void test_WSAAddressToStringA(void) ...@@ -1330,7 +1330,7 @@ static void test_WSAAddressToStringA(void)
ok( !ret, "WSAAddressToStringA() failed unexpectedly: %d\n", WSAGetLastError() ); ok( !ret, "WSAAddressToStringA() failed unexpectedly: %d\n", WSAGetLastError() );
ok( !strcmp( address, expect4 ), "Expected: %s, got: %s\n", expect4, address ); ok( !strcmp( address, expect4 ), "Expected: %s, got: %s\n", expect4, address );
ok( len == sizeof( expect4 ), "Expected size to be %d, got %d\n", sizeof( expect4 ), len); ok( len == sizeof( expect4 ), "Got size %d\n", len);
} }
static void test_WSAAddressToStringW(void) static void test_WSAAddressToStringW(void)
...@@ -1369,7 +1369,7 @@ static void test_WSAAddressToStringW(void) ...@@ -1369,7 +1369,7 @@ static void test_WSAAddressToStringW(void)
ok( !ret, "WSAAddressToStringW() failed unexpectedly: %d\n", WSAGetLastError() ); ok( !ret, "WSAAddressToStringW() failed unexpectedly: %d\n", WSAGetLastError() );
ok( !lstrcmpW( address, expect1 ), "Expected different address string\n" ); ok( !lstrcmpW( address, expect1 ), "Expected different address string\n" );
ok( len == sizeof( expect1 )/sizeof( WCHAR ), "Expected size to be %d, got %d\n", sizeof( expect1 )/sizeof( WCHAR ), len); ok( len == sizeof( expect1 )/sizeof( WCHAR ), "Got size %d\n", len);
len = sizeof(address); len = sizeof(address);
...@@ -1403,7 +1403,7 @@ static void test_WSAAddressToStringW(void) ...@@ -1403,7 +1403,7 @@ static void test_WSAAddressToStringW(void)
ok( !ret, "WSAAddressToStringW() failed unexpectedly: %d\n", WSAGetLastError() ); ok( !ret, "WSAAddressToStringW() failed unexpectedly: %d\n", WSAGetLastError() );
ok( !lstrcmpW( address, expect4 ), "Expected different address string\n" ); ok( !lstrcmpW( address, expect4 ), "Expected different address string\n" );
ok( len == sizeof( expect4 )/sizeof( WCHAR ), "Expected size to be %d, got %d\n", sizeof( expect4 )/sizeof( WCHAR ), len); ok( len == sizeof( expect4 )/sizeof( WCHAR ), "Got size %d\n", len);
} }
static void test_WSAStringToAddressA(void) static void test_WSAStringToAddressA(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment