Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
d341cca6
Commit
d341cca6
authored
Apr 22, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Avoid sizeof in traces.
parent
eae1898a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sock.c
dlls/ws2_32/tests/sock.c
+4
-4
No files found.
dlls/ws2_32/tests/sock.c
View file @
d341cca6
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment