ws2_32/tests: Avoid sizeof in traces.
This commit is contained in:
parent
eae1898aae
commit
d341cca616
|
@ -1296,7 +1296,7 @@ static void test_WSAAddressToStringA(void)
|
|||
ok( !ret, "WSAAddressToStringA() failed unexpectedly: %d\n", WSAGetLastError() );
|
||||
|
||||
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);
|
||||
|
||||
|
@ -1330,7 +1330,7 @@ static void test_WSAAddressToStringA(void)
|
|||
ok( !ret, "WSAAddressToStringA() failed unexpectedly: %d\n", WSAGetLastError() );
|
||||
|
||||
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)
|
||||
|
@ -1369,7 +1369,7 @@ static void test_WSAAddressToStringW(void)
|
|||
ok( !ret, "WSAAddressToStringW() failed unexpectedly: %d\n", WSAGetLastError() );
|
||||
|
||||
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);
|
||||
|
||||
|
@ -1403,7 +1403,7 @@ static void test_WSAAddressToStringW(void)
|
|||
ok( !ret, "WSAAddressToStringW() failed unexpectedly: %d\n", WSAGetLastError() );
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue