Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
aff2e2e5
Commit
aff2e2e5
authored
May 02, 2004
by
Marcus Meissner
Committed by
Alexandre Julliard
May 02, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented CoReleaseMarshalData.
parent
54d7cb60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
1 deletion
+51
-1
marshal.c
dlls/ole32/marshal.c
+50
-0
ole32.spec
dlls/ole32/ole32.spec
+1
-1
No files found.
dlls/ole32/marshal.c
View file @
aff2e2e5
...
...
@@ -544,6 +544,56 @@ release_marshal:
}
/***********************************************************************
* CoReleaseMarshalData [OLE32.@]
*/
HRESULT
WINAPI
CoReleaseMarshalData
(
IStream
*
pStm
)
{
HRESULT
hres
;
wine_marshal_id
mid
;
wine_marshal_data
md
;
ULONG
res
;
LPMARSHAL
pMarshal
;
LPUNKNOWN
pUnk
;
CLSID
xclsid
;
TRACE
(
"(%p)
\n
"
,
pStm
);
hres
=
IStream_Read
(
pStm
,
&
mid
,
sizeof
(
mid
),
&
res
);
if
(
hres
)
{
FIXME
(
"Stream read 1 failed, %lx, (%ld of %d)
\n
"
,
hres
,
res
,
sizeof
(
mid
));
return
hres
;
}
hres
=
IStream_Read
(
pStm
,
&
md
,
sizeof
(
md
),
&
res
);
if
(
hres
)
{
FIXME
(
"Stream read 2 failed, %lx, (%ld of %d)
\n
"
,
hres
,
res
,
sizeof
(
md
));
return
hres
;
}
hres
=
IStream_Read
(
pStm
,
&
xclsid
,
sizeof
(
xclsid
),
&
res
);
if
(
hres
)
{
FIXME
(
"Stream read 3 failed, %lx, (%ld of %d)
\n
"
,
hres
,
res
,
sizeof
(
xclsid
));
return
hres
;
}
hres
=
CoCreateInstance
(
&
xclsid
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
|
CLSCTX_LOCAL_SERVER
,
&
IID_IMarshal
,(
void
**
)(
char
*
)
&
pUnk
);
if
(
hres
)
{
FIXME
(
"Failed to create instance of unmarshaller %s.
\n
"
,
debugstr_guid
(
&
xclsid
));
return
hres
;
}
hres
=
IUnknown_QueryInterface
(
pUnk
,
&
IID_IMarshal
,(
LPVOID
*
)(
char
*
)
&
pMarshal
);
if
(
hres
)
{
FIXME
(
"Failed to get IMarshal iface, %lx?
\n
"
,
hres
);
return
hres
;
}
hres
=
IMarshal_ReleaseMarshalData
(
pMarshal
,
pStm
);
if
(
hres
)
{
FIXME
(
"Failed to releasemarshaldata the interface, %lx?
\n
"
,
hres
);
}
IMarshal_Release
(
pMarshal
);
IUnknown_Release
(
pUnk
);
return
hres
;
}
/***********************************************************************
* CoMarshalInterThreadInterfaceInStream [OLE32.@]
*
* Marshal interfaces across threads. We don't have a thread distinction,
...
...
dlls/ole32/ole32.spec
View file @
aff2e2e5
...
...
@@ -57,7 +57,7 @@
@ stdcall CoRegisterMessageFilter(ptr ptr)
@ stub CoRegisterPSClsid #@ stdcall (ptr ptr) return 0,ERR_NOTIMPLEMENTED
@ stub CoRegisterSurrogate
@ st
ub CoReleaseMarshalData #@ stdcall (ptr) return 0,ERR_NOTIMPLEMENTED
@ st
dcall CoReleaseMarshalData(ptr)
@ stub CoReleaseServerProcess #@ stdcall () return 0,ERR_NOTIMPLEMENTED
@ stdcall CoResumeClassObjects()
@ stub CoRevertToSelf #@ stdcall () return 0,ERR_NOTIMPLEMENTED
...
...
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