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
514af6ce
Commit
514af6ce
authored
Feb 08, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Feb 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move object-to-stub-manager mapping rule to register_ifstub.
parent
ef1d367b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
20 deletions
+4
-20
marshal.c
dlls/ole32/marshal.c
+4
-20
No files found.
dlls/ole32/marshal.c
View file @
514af6ce
...
...
@@ -85,10 +85,10 @@ get_facbuf_for_iid(REFIID riid,IPSFactoryBuffer **facbuf) {
return
CoGetClassObject
(
&
pxclsid
,
CLSCTX_INPROC_SERVER
,
NULL
,
&
IID_IPSFactoryBuffer
,(
LPVOID
*
)
facbuf
);
}
/* creates a new stub manager
and sets stdobjref->oid when stdobjref->oid == 0
*/
/* creates a new stub manager */
HRESULT
register_ifstub
(
APARTMENT
*
apt
,
STDOBJREF
*
stdobjref
,
REFIID
riid
,
IUnknown
*
obj
,
MSHLFLAGS
mshlflags
)
{
struct
stub_manager
*
manager
=
NULL
;
struct
stub_manager
*
manager
;
struct
ifstub
*
ifstub
;
BOOL
tablemarshal
;
IRpcStubBuffer
*
stub
;
...
...
@@ -117,12 +117,8 @@ HRESULT register_ifstub(APARTMENT *apt, STDOBJREF *stdobjref, REFIID riid, IUnkn
stdobjref
->
oxid
=
apt
->
oxid
;
/* mid->oid of zero means create a new stub manager */
if
(
stdobjref
->
oid
&&
(
manager
=
get_stub_manager
(
apt
,
stdobjref
->
oid
)))
{
if
((
manager
=
get_stub_manager_from_object
(
apt
,
obj
)))
TRACE
(
"registering new ifstub on pre-existing manager
\n
"
);
}
else
{
TRACE
(
"constructing new stub manager
\n
"
);
...
...
@@ -130,9 +126,8 @@ HRESULT register_ifstub(APARTMENT *apt, STDOBJREF *stdobjref, REFIID riid, IUnkn
manager
=
new_stub_manager
(
apt
,
obj
);
if
(
!
manager
)
return
E_OUTOFMEMORY
;
stdobjref
->
oid
=
manager
->
oid
;
}
stdobjref
->
oid
=
manager
->
oid
;
tablemarshal
=
((
mshlflags
&
MSHLFLAGS_TABLESTRONG
)
||
(
mshlflags
&
MSHLFLAGS_TABLEWEAK
));
...
...
@@ -787,7 +782,6 @@ StdMarshalImpl_MarshalInterface(
IUnknown
*
pUnk
;
ULONG
res
;
HRESULT
hres
;
struct
stub_manager
*
manager
;
APARTMENT
*
apt
=
COM_CurrentApt
();
TRACE
(
"(...,%s,...)
\n
"
,
debugstr_guid
(
riid
));
...
...
@@ -809,16 +803,6 @@ StdMarshalImpl_MarshalInterface(
return
E_NOINTERFACE
;
}
if
((
manager
=
get_stub_manager_from_object
(
apt
,
pUnk
)))
{
stdobjref
.
oid
=
manager
->
oid
;
stub_manager_int_release
(
manager
);
}
else
{
stdobjref
.
oid
=
0
;
/* will be set by register_ifstub */
}
hres
=
register_ifstub
(
apt
,
&
stdobjref
,
riid
,
pUnk
,
mshlflags
);
IUnknown_Release
(
pUnk
);
...
...
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