Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Plan
Wiki
Bugzilla
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wine
wine
Commits
5cf55893
Commit
5cf55893
authored
1 year ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
netprofm: Use the correct symbols for error codes.
parent
9e639ff1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/netprofm/list.c
+2
-2
2 additions, 2 deletions
dlls/netprofm/list.c
dlls/netprofm/tests/list.c
+5
-4
5 additions, 4 deletions
dlls/netprofm/tests/list.c
with
7 additions
and
6 deletions
dlls/netprofm/list.c
+
2
−
2
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
(
...
...
This diff is collapsed.
Click to expand it.
dlls/netprofm/tests/list.c
+
5
−
4
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
);
...
...
This diff is collapsed.
Click to expand it.
Alexandre Julliard
@julliard
mentioned in merge request
!5349 (closed)
·
1 year ago
mentioned in merge request
!5349 (closed)
mentioned in merge request !5349
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment