Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
320286af
Commit
320286af
authored
Mar 05, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi/tests: Don't pass a NULL size to GetTcp/UdpTable, it crashes on Vista.
parent
e8f9a6fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
iphlpapi.c
dlls/iphlpapi/tests/iphlpapi.c
+2
-10
No files found.
dlls/iphlpapi/tests/iphlpapi.c
View file @
320286af
...
...
@@ -424,15 +424,11 @@ static void testGetTcpTable(void)
DWORD
apiReturn
;
ULONG
dwSize
=
0
;
apiReturn
=
gGetTcpTable
(
NULL
,
NULL
,
FALSE
);
apiReturn
=
gGetTcpTable
(
NULL
,
&
dwSize
,
FALSE
);
if
(
apiReturn
==
ERROR_NOT_SUPPORTED
)
{
skip
(
"GetTcpTable is not supported
\n
"
);
return
;
}
ok
(
apiReturn
==
ERROR_INVALID_PARAMETER
,
"GetTcpTable(NULL, NULL, FALSE) returned %d, expected ERROR_INVALID_PARAMETER
\n
"
,
apiReturn
);
apiReturn
=
gGetTcpTable
(
NULL
,
&
dwSize
,
FALSE
);
ok
(
apiReturn
==
ERROR_INSUFFICIENT_BUFFER
||
broken
(
apiReturn
==
ERROR_NO_DATA
),
/* win95 */
"GetTcpTable(NULL, &dwSize, FALSE) returned %d, expected ERROR_INSUFFICIENT_BUFFER
\n
"
,
...
...
@@ -455,15 +451,11 @@ static void testGetUdpTable(void)
DWORD
apiReturn
;
ULONG
dwSize
=
0
;
apiReturn
=
gGetUdpTable
(
NULL
,
NULL
,
FALSE
);
apiReturn
=
gGetUdpTable
(
NULL
,
&
dwSize
,
FALSE
);
if
(
apiReturn
==
ERROR_NOT_SUPPORTED
)
{
skip
(
"GetUdpTable is not supported
\n
"
);
return
;
}
ok
(
apiReturn
==
ERROR_INVALID_PARAMETER
,
"GetUdpTable(NULL, NULL, FALSE) returned %d, expected ERROR_INVALID_PARAMETER
\n
"
,
apiReturn
);
apiReturn
=
gGetUdpTable
(
NULL
,
&
dwSize
,
FALSE
);
ok
(
apiReturn
==
ERROR_INSUFFICIENT_BUFFER
,
"GetUdpTable(NULL, &dwSize, FALSE) returned %d, expected ERROR_INSUFFICIENT_BUFFER
\n
"
,
apiReturn
);
...
...
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