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
be41201c
Commit
be41201c
authored
Mar 03, 2021
by
Jactry Zeng
Committed by
Alexandre Julliard
Mar 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netprofm: Initialize ret value in IEnumNetworkConnections_Next().
Signed-off-by:
Jactry Zeng
<
jzeng@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e51ae869
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
list.c
dlls/netprofm/list.c
+2
-0
list.c
dlls/netprofm/tests/list.c
+12
-1
No files found.
dlls/netprofm/list.c
View file @
be41201c
...
...
@@ -1001,6 +1001,8 @@ static HRESULT WINAPI connections_enum_Next(
TRACE
(
"%p, %u %p %p
\n
"
,
iter
,
count
,
ret
,
fetched
);
if
(
!
ret
)
return
E_POINTER
;
*
ret
=
NULL
;
if
(
fetched
)
*
fetched
=
0
;
if
(
!
count
)
return
S_OK
;
...
...
dlls/netprofm/tests/list.c
View file @
be41201c
...
...
@@ -229,7 +229,7 @@ static void test_INetworkListManager( void )
INetworkConnection
*
conn
;
DWORD
cookie
;
HRESULT
hr
;
ULONG
ref1
,
ref2
;
ULONG
ref1
,
ref2
,
fetched
;
IID
iid
;
hr
=
CoCreateInstance
(
&
CLSID_NetworkListManager
,
NULL
,
CLSCTX_INPROC_SERVER
,
...
...
@@ -355,11 +355,22 @@ static void test_INetworkListManager( void )
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
if
(
conn_iter
)
{
fetched
=
256
;
hr
=
IEnumNetworkConnections_Next
(
conn_iter
,
1
,
NULL
,
&
fetched
);
ok
(
hr
==
E_POINTER
,
"got hr %#x.
\n
"
,
hr
);
ok
(
fetched
==
256
,
"got wrong feteched: %d.
\n
"
,
fetched
);
hr
=
IEnumNetworkConnections_Next
(
conn_iter
,
0
,
NULL
,
&
fetched
);
ok
(
hr
==
E_POINTER
,
"got hr %#x.
\n
"
,
hr
);
ok
(
fetched
==
256
,
"got wrong feteched: %d.
\n
"
,
fetched
);
while
((
hr
=
IEnumNetworkConnections_Next
(
conn_iter
,
1
,
&
conn
,
NULL
))
==
S_OK
)
{
test_INetworkConnection
(
conn
);
INetworkConnection_Release
(
conn
);
conn
=
(
void
*
)
0xdeadbeef
;
}
ok
(
!
conn
,
"got wrong pointer: %p.
\n
"
,
conn
);
IEnumNetworkConnections_Release
(
conn_iter
);
}
...
...
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