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
81994233
Commit
81994233
authored
Aug 02, 2004
by
Mike Hearn
Committed by
Alexandre Julliard
Aug 02, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disconnect proxies at COM shutdown to release the corresponding
stubs.
parent
5e6487fe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
compobj.c
dlls/ole32/compobj.c
+5
-0
compobj_private.h
dlls/ole32/compobj_private.h
+1
-0
marshal.c
dlls/ole32/marshal.c
+15
-0
No files found.
dlls/ole32/compobj.c
View file @
81994233
...
...
@@ -512,6 +512,11 @@ void WINAPI CoUninitialize(void)
RunningObjectTableImpl_UnInitialize
();
/* disconnect proxies to release the corresponding stubs.
* FIXME: native version might not do this and we might just be working
* around bugs elsewhere. */
MARSHAL_Disconnect_Proxies
();
/* Release the references to the registered class objects */
COM_RevokeAllClasses
();
...
...
dlls/ole32/compobj_private.h
View file @
81994233
...
...
@@ -148,6 +148,7 @@ MARSHAL_Compare_Mids_NoInterface(wine_marshal_id *mid1, wine_marshal_id *mid2) {
HRESULT
MARSHAL_Find_Stub_Buffer
(
wine_marshal_id
*
mid
,
IRpcStubBuffer
**
stub
);
void
MARSHAL_Invalidate_Stub_From_MID
(
wine_marshal_id
*
mid
);
HRESULT
MARSHAL_Disconnect_Proxies
();
HRESULT
MARSHAL_GetStandardMarshalCF
(
LPVOID
*
ppv
);
...
...
dlls/ole32/marshal.c
View file @
81994233
...
...
@@ -188,6 +188,18 @@ MARSHAL_Find_Proxy(wine_marshal_id *mid,LPUNKNOWN *punk) {
}
HRESULT
MARSHAL_Disconnect_Proxies
()
{
int
i
;
TRACE
(
"Disconnecting %d proxies
\n
"
,
nrofproxies
);
for
(
i
=
0
;
i
<
nrofproxies
;
i
++
)
IRpcProxyBuffer_Disconnect
((
IRpcProxyBuffer
*
)
proxies
[
i
].
pUnk
);
return
S_OK
;
}
HRESULT
MARSHAL_Find_Proxy_Object
(
wine_marshal_id
*
mid
,
LPUNKNOWN
*
punk
)
{
int
i
;
...
...
@@ -359,6 +371,9 @@ StdMarshalImpl_UnmarshalInterface(
FIXME
(
"Failed to create a proxy for %s
\n
"
,
debugstr_guid
(
riid
));
return
hres
;
}
MARSHAL_Register_Proxy
(
&
mid
,
(
LPUNKNOWN
)
rpcproxy
);
hres
=
PIPE_GetNewPipeBuf
(
&
mid
,
&
chanbuf
);
IPSFactoryBuffer_Release
(
psfacbuf
);
if
(
hres
)
{
...
...
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