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
a30cc75f
Commit
a30cc75f
authored
May 23, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
May 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Added IExternalConnection support.
parent
889112a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
compobj_private.h
dlls/ole32/compobj_private.h
+2
-0
stubmanager.c
dlls/ole32/stubmanager.c
+16
-0
No files found.
dlls/ole32/compobj_private.h
View file @
a30cc75f
...
...
@@ -98,6 +98,8 @@ struct stub_manager
ULONG
next_ipid
;
/* currently unused (LOCK) */
OXID_INFO
oxid_info
;
/* string binding, ipid of rem unknown and other information (RO) */
IExternalConnection
*
extern_conn
;
/* We need to keep a count of the outstanding marshals, so we can enforce the
* marshalling rules (ie, you can only unmarshal normal marshals once). Note
* that these counts do NOT include unmarshalled interfaces, once a stream is
...
...
dlls/ole32/stubmanager.c
View file @
a30cc75f
...
...
@@ -173,6 +173,7 @@ struct ifstub *stub_manager_find_ifstub(struct stub_manager *m, REFIID iid, MSHL
struct
stub_manager
*
new_stub_manager
(
APARTMENT
*
apt
,
IUnknown
*
object
)
{
struct
stub_manager
*
sm
;
HRESULT
hres
;
assert
(
apt
);
...
...
@@ -218,6 +219,16 @@ struct stub_manager *new_stub_manager(APARTMENT *apt, IUnknown *object)
*/
sm
->
extrefs
=
0
;
/*
* NOTE: According to tests, creating a stub causes two AddConnection calls followed by
* one ReleaseConnection call (with fLastReleaseCloses=FALSE).
*/
hres
=
IUnknown_QueryInterface
(
object
,
&
IID_IExternalConnection
,
(
void
**
)
&
sm
->
extern_conn
);
if
(
SUCCEEDED
(
hres
))
IExternalConnection_AddConnection
(
sm
->
extern_conn
,
EXTCONN_STRONG
,
0
);
else
sm
->
extern_conn
=
NULL
;
EnterCriticalSection
(
&
apt
->
cs
);
sm
->
oid
=
apt
->
oidc
++
;
list_add_head
(
&
apt
->
stubmgrs
,
&
sm
->
entry
);
...
...
@@ -242,6 +253,11 @@ static void stub_manager_delete(struct stub_manager *m)
stub_manager_delete_ifstub
(
m
,
ifstub
);
}
if
(
m
->
extern_conn
)
{
IExternalConnection_ReleaseConnection
(
m
->
extern_conn
,
EXTCONN_STRONG
,
0
,
TRUE
);
IExternalConnection_Release
(
m
->
extern_conn
);
}
CoTaskMemFree
(
m
->
oxid_info
.
psa
);
IUnknown_Release
(
m
->
object
);
...
...
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