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
d389b571
Commit
d389b571
authored
Sep 20, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Sep 20, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fix a trace to refer to the object ID rather than the legacy MID.
- Fix the error case of CoMarshalInterThreadInterface to release the stream.
parent
a999a990
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
marshal.c
dlls/ole32/marshal.c
+12
-5
No files found.
dlls/ole32/marshal.c
View file @
d389b571
...
...
@@ -1110,7 +1110,7 @@ StdMarshalImpl_ReleaseMarshalData(LPMARSHAL iface, IStream *pStm)
if
(
!
(
stubmgr
=
get_stub_manager
(
apt
,
stdobjref
.
oid
)))
{
ERR
(
"could not map
M
ID to stub manager, oxid=%s, oid=%s
\n
"
,
ERR
(
"could not map
object
ID to stub manager, oxid=%s, oid=%s
\n
"
,
wine_dbgstr_longlong
(
stdobjref
.
oxid
),
wine_dbgstr_longlong
(
stdobjref
.
oid
));
return
RPC_E_INVALID_OBJREF
;
}
...
...
@@ -1621,13 +1621,20 @@ HRESULT WINAPI CoMarshalInterThreadInterfaceInStream(
TRACE
(
"(%s, %p, %p)
\n
"
,
debugstr_guid
(
riid
),
pUnk
,
ppStm
);
hres
=
CreateStreamOnHGlobal
(
0
,
TRUE
,
ppStm
);
hres
=
CreateStreamOnHGlobal
(
NULL
,
TRUE
,
ppStm
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
CoMarshalInterface
(
*
ppStm
,
riid
,
pUnk
,
MSHCTX_INPROC
,
NULL
,
MSHLFLAGS_NORMAL
);
/* FIXME: is this needed? */
memset
(
&
seekto
,
0
,
sizeof
(
seekto
));
IStream_Seek
(
*
ppStm
,
seekto
,
SEEK_SET
,
&
xpos
);
if
(
SUCCEEDED
(
hres
))
{
memset
(
&
seekto
,
0
,
sizeof
(
seekto
));
IStream_Seek
(
*
ppStm
,
seekto
,
SEEK_SET
,
&
xpos
);
}
else
{
IStream_Release
(
*
ppStm
);
*
ppStm
=
NULL
;
}
return
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