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
d2df3c2c
Commit
d2df3c2c
authored
Feb 26, 2024
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 26, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netprofm: Set return pointer to NULL in networks_enum_Next().
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=56271
parent
635e0566
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
list.c
dlls/netprofm/list.c
+2
-0
list.c
dlls/netprofm/tests/list.c
+7
-0
No files found.
dlls/netprofm/list.c
View file @
d2df3c2c
...
...
@@ -812,6 +812,8 @@ static HRESULT WINAPI networks_enum_Next(
TRACE
(
"%p, %lu %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 @
d2df3c2c
...
...
@@ -381,14 +381,21 @@ static void test_INetworkListManager( void )
hr
=
INetworkListManager_GetNetworks
(
mgr
,
NLM_ENUM_NETWORK_ALL
,
&
network_iter
);
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
ok
(
network_iter
!=
NULL
,
"network_iter not set
\n
"
);
hr
=
IEnumNetworks_Next
(
network_iter
,
0
,
NULL
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got %08lx
\n
"
,
hr
);
network
=
(
INetwork
*
)
0xdeadbeef
;
while
((
hr
=
IEnumNetworks_Next
(
network_iter
,
1
,
&
network
,
NULL
))
==
S_OK
)
{
ok
(
network
!=
(
INetwork
*
)
0xdeadbeef
,
"network not set
\n
"
);
connected
=
1
;
hr
=
INetwork_get_IsConnected
(
network
,
&
connected
);
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
ok
(
connected
==
-
1
||
connected
==
0
,
"got %d
\n
"
,
connected
);
INetwork_Release
(
network
);
network
=
(
INetwork
*
)
0xdeadbeef
;
}
ok
(
hr
==
S_FALSE
,
"got %08lx
\n
"
,
hr
);
ok
(
network
==
NULL
,
"network not set
\n
"
);
IEnumNetworks_Release
(
network_iter
);
hr
=
INetworkListManager_GetNetworks
(
mgr
,
NLM_ENUM_NETWORK_CONNECTED
,
&
network_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