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
5cf55893
Commit
5cf55893
authored
Mar 19, 2024
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netprofm: Use the correct symbols for error codes.
parent
9e639ff1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
list.c
dlls/netprofm/list.c
+2
-2
list.c
dlls/netprofm/tests/list.c
+5
-4
No files found.
dlls/netprofm/list.c
View file @
5cf55893
...
...
@@ -194,7 +194,7 @@ static HRESULT WINAPI connection_point_Advise(
if
(
FAILED
(
hr
))
{
WARN
(
"iface %s not implemented by sink
\n
"
,
debugstr_guid
(
&
cp
->
iid
)
);
return
CO
_E_FAILEDTOOPENTHREADTOKEN
;
return
CO
NNECT_E_CANNOTCONNECT
;
}
sink_entry
=
malloc
(
sizeof
(
*
sink_entry
)
);
...
...
@@ -234,7 +234,7 @@ static HRESULT WINAPI connection_point_Unadvise(
}
WARN
(
"invalid cookie
\n
"
);
return
OLE
_E_NOCONNECTION
;
return
CONNECT
_E_NOCONNECTION
;
}
static
HRESULT
WINAPI
connection_point_EnumConnections
(
...
...
dlls/netprofm/tests/list.c
View file @
5cf55893
...
...
@@ -22,6 +22,7 @@
#include "initguid.h"
#include "objbase.h"
#include "ocidl.h"
#include "olectl.h"
#include "netlistmgr.h"
#include "wine/test.h"
...
...
@@ -348,13 +349,13 @@ static void test_INetworkListManager( void )
"Expected iid to be IID_INetworkListManagerEvents
\n
"
);
hr
=
IConnectionPoint_Advise
(
pt
,
(
IUnknown
*
)
&
mgr_sink_unk
,
&
cookie
);
ok
(
hr
==
CO
_E_FAILEDTOOPENTHREADTOKEN
,
"Advise failed: %08lx
\n
"
,
hr
);
ok
(
hr
==
CO
NNECT_E_CANNOTCONNECT
,
"Advise failed: %08lx
\n
"
,
hr
);
hr
=
IConnectionPoint_Advise
(
pt
,
(
IUnknown
*
)
&
mgr_sink
,
&
cookie
);
ok
(
hr
==
S_OK
,
"Advise failed: %08lx
\n
"
,
hr
);
hr
=
IConnectionPoint_Unadvise
(
pt
,
0xdeadbeef
);
ok
(
hr
==
OLE_E_NOCONNECTION
||
hr
==
CO
_E_FAILEDTOIMPERSONATE
,
"Unadvise failed: %08lx
\n
"
,
hr
);
ok
(
hr
==
OLE_E_NOCONNECTION
||
hr
==
CO
NNECT_E_NOCONNECTION
,
"Unadvise failed: %08lx
\n
"
,
hr
);
hr
=
IConnectionPoint_Unadvise
(
pt
,
cookie
);
ok
(
hr
==
S_OK
,
"Unadvise failed: %08lx
\n
"
,
hr
);
...
...
@@ -365,11 +366,11 @@ static void test_INetworkListManager( void )
IConnectionPoint_Release
(
pt2
);
hr
=
IConnectionPointContainer_FindConnectionPoint
(
cpc
,
&
IID_INetworkCostManagerEvents
,
&
pt
);
ok
(
hr
==
S_OK
||
hr
==
CO
_E_FAILEDTOIMPERSONATE
,
"got %08lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
||
hr
==
CO
NNECT_E_NOCONNECTION
,
"got %08lx
\n
"
,
hr
);
if
(
hr
==
S_OK
)
IConnectionPoint_Release
(
pt
);
hr
=
IConnectionPointContainer_FindConnectionPoint
(
cpc
,
&
IID_INetworkConnectionEvents
,
&
pt
);
ok
(
hr
==
S_OK
||
hr
==
CO
_E_FAILEDTOIMPERSONATE
,
"got %08lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
||
hr
==
CO
NNECT_E_NOCONNECTION
,
"got %08lx
\n
"
,
hr
);
if
(
hr
==
S_OK
)
IConnectionPoint_Release
(
pt
);
hr
=
IConnectionPointContainer_FindConnectionPoint
(
cpc
,
&
IID_INetworkEvents
,
&
pt
);
...
...
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