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
bf681bff
Commit
bf681bff
authored
Feb 19, 2014
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Feb 26, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dpnet: Add pointer tests and checks in EnumServiceProvider.
parent
964c7d73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
peer.c
dlls/dpnet/peer.c
+3
-0
peer.c
dlls/dpnet/tests/peer.c
+6
-0
No files found.
dlls/dpnet/peer.c
View file @
bf681bff
...
...
@@ -130,6 +130,9 @@ static HRESULT WINAPI IDirectPlay8PeerImpl_EnumServiceProviders(IDirectPlay8Peer
TRACE
(
"(%p)->(%p,%p,%p,%p,%p,%x): stub
\n
"
,
iface
,
pguidServiceProvider
,
pguidApplication
,
pSPInfoBuffer
,
pcbEnumData
,
pcReturned
,
dwFlags
);
if
(
!
pcReturned
||
!
pcbEnumData
)
return
E_POINTER
;
if
(
!
pguidServiceProvider
)
{
req_size
=
sizeof
(
DPN_SERVICE_PROVIDER_INFO
)
+
sizeof
(
dp_providerW
);
...
...
dlls/dpnet/tests/peer.c
View file @
bf681bff
...
...
@@ -59,6 +59,12 @@ static void test_enum_service_providers(void)
size
=
0
;
items
=
0
;
hr
=
IDirectPlay8Peer_EnumServiceProviders
(
peer
,
NULL
,
NULL
,
NULL
,
&
size
,
NULL
,
0
);
ok
(
hr
==
E_POINTER
,
"IDirectPlay8Peer_EnumServiceProviders failed with %x
\n
"
,
hr
);
hr
=
IDirectPlay8Peer_EnumServiceProviders
(
peer
,
NULL
,
NULL
,
NULL
,
NULL
,
&
items
,
0
);
ok
(
hr
==
E_POINTER
,
"IDirectPlay8Peer_EnumServiceProviders failed with %x
\n
"
,
hr
);
hr
=
IDirectPlay8Peer_EnumServiceProviders
(
peer
,
NULL
,
NULL
,
NULL
,
&
size
,
&
items
,
0
);
ok
(
hr
==
DPNERR_BUFFERTOOSMALL
,
"IDirectPlay8Peer_EnumServiceProviders failed with %x
\n
"
,
hr
);
ok
(
size
!=
0
,
"size is unexpectedly 0
\n
"
);
...
...
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