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
96967058
Commit
96967058
authored
Oct 21, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Oct 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dpnet/tests: Avoid casting return value of HeapAlloc calls.
parent
3c15af30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
peer.c
dlls/dpnet/tests/peer.c
+2
-2
No files found.
dlls/dpnet/tests/peer.c
View file @
96967058
...
...
@@ -70,7 +70,7 @@ static void test_enum_service_providers(void)
ok
(
hr
==
DPNERR_BUFFERTOOSMALL
,
"IDirectPlay8Peer_EnumServiceProviders failed with %x
\n
"
,
hr
);
ok
(
size
!=
0
,
"size is unexpectedly 0
\n
"
);
serv_prov_info
=
(
DPN_SERVICE_PROVIDER_INFO
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
serv_prov_info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
hr
=
IDirectPlay8Peer_EnumServiceProviders
(
peer
,
NULL
,
NULL
,
serv_prov_info
,
&
size
,
&
items
,
0
);
ok
(
hr
==
S_OK
,
"IDirectPlay8Peer_EnumServiceProviders failed with %x
\n
"
,
hr
);
...
...
@@ -96,7 +96,7 @@ static void test_enum_service_providers(void)
ok
(
hr
==
DPNERR_BUFFERTOOSMALL
,
"IDirectPlay8Peer_EnumServiceProviders failed with %x
\n
"
,
hr
);
ok
(
size
!=
0
,
"size is unexpectedly 0
\n
"
);
serv_prov_info
=
(
DPN_SERVICE_PROVIDER_INFO
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
serv_prov_info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
hr
=
IDirectPlay8Peer_EnumServiceProviders
(
peer
,
&
CLSID_DP8SP_TCPIP
,
NULL
,
serv_prov_info
,
&
size
,
&
items
,
0
);
ok
(
hr
==
S_OK
,
"IDirectPlay8Peer_EnumServiceProviders failed with %x
\n
"
,
hr
);
...
...
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