Huw Davies : ole32: Add proxies and stubs for Seek and CopyTo.
Alexandre Julliard
julliard at winehq.org
Mon May 18 08:13:14 CDT 2009
Module: wine
Branch: master
Commit: aa13c7c522270706f177860d28135277d091f3f5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=aa13c7c522270706f177860d28135277d091f3f5
Author: Huw Davies <huw at codeweavers.com>
Date: Thu May 14 17:26:16 2009 +0100
ole32: Add proxies and stubs for Seek and CopyTo.
---
dlls/ole32/usrmarshal.c | 32 ++++++++++++++++++++++++--------
1 files changed, 24 insertions(+), 8 deletions(-)
diff --git a/dlls/ole32/usrmarshal.c b/dlls/ole32/usrmarshal.c
index 2669faa..b85eec6 100644
--- a/dlls/ole32/usrmarshal.c
+++ b/dlls/ole32/usrmarshal.c
@@ -2351,8 +2351,15 @@ HRESULT CALLBACK IStream_Seek_Proxy(
DWORD dwOrigin,
ULARGE_INTEGER *plibNewPosition)
{
- FIXME(":stub\n");
- return E_NOTIMPL;
+ ULARGE_INTEGER newpos;
+ HRESULT hr;
+
+ TRACE("(%p)->(%s, %d, %p)\n", This, wine_dbgstr_longlong(dlibMove.QuadPart), dwOrigin, plibNewPosition);
+
+ hr = IStream_RemoteSeek_Proxy(This, dlibMove, dwOrigin, &newpos);
+ if(plibNewPosition) *plibNewPosition = newpos;
+
+ return hr;
}
HRESULT __RPC_STUB IStream_Seek_Stub(
@@ -2361,8 +2368,8 @@ HRESULT __RPC_STUB IStream_Seek_Stub(
DWORD dwOrigin,
ULARGE_INTEGER *plibNewPosition)
{
- FIXME(":stub\n");
- return E_NOTIMPL;
+ TRACE("(%p)->(%s, %d, %p)\n", This, wine_dbgstr_longlong(dlibMove.QuadPart), dwOrigin, plibNewPosition);
+ return IStream_Seek(This, dlibMove, dwOrigin, plibNewPosition);
}
HRESULT CALLBACK IStream_CopyTo_Proxy(
@@ -2372,8 +2379,16 @@ HRESULT CALLBACK IStream_CopyTo_Proxy(
ULARGE_INTEGER *pcbRead,
ULARGE_INTEGER *pcbWritten)
{
- FIXME(":stub\n");
- return E_NOTIMPL;
+ ULARGE_INTEGER read, written;
+ HRESULT hr;
+
+ TRACE("(%p)->(%p, %s, %p, %p)\n", This, pstm, wine_dbgstr_longlong(cb.QuadPart), pcbRead, pcbWritten);
+
+ hr = IStream_RemoteCopyTo_Proxy(This, pstm, cb, &read, &written);
+ if(pcbRead) *pcbRead = read;
+ if(pcbWritten) *pcbWritten = written;
+
+ return hr;
}
HRESULT __RPC_STUB IStream_CopyTo_Stub(
@@ -2383,8 +2398,9 @@ HRESULT __RPC_STUB IStream_CopyTo_Stub(
ULARGE_INTEGER *pcbRead,
ULARGE_INTEGER *pcbWritten)
{
- FIXME(":stub\n");
- return E_NOTIMPL;
+ TRACE("(%p)->(%p, %s, %p, %p)\n", This, pstm, wine_dbgstr_longlong(cb.QuadPart), pcbRead, pcbWritten);
+
+ return IStream_CopyTo(This, pstm, cb, pcbRead, pcbWritten);
}
HRESULT CALLBACK IEnumSTATSTG_Next_Proxy(
More information about the wine-cvs
mailing list