Rob Shearman : ole32: Fix some uses of SEEK_SET when STREAM_SEEK_SET should have been used instead .
Alexandre Julliard
julliard at winehq.org
Wed Jan 9 07:01:54 CST 2008
Module: wine
Branch: master
Commit: b02b9496d2c88d682522d09ae50c6c013eb8e358
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b02b9496d2c88d682522d09ae50c6c013eb8e358
Author: Rob Shearman <rob at codeweavers.com>
Date: Tue Jan 8 18:14:07 2008 +0000
ole32: Fix some uses of SEEK_SET when STREAM_SEEK_SET should have been used instead.
---
dlls/ole32/oleproxy.c | 2 +-
dlls/ole32/rpc.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/ole32/oleproxy.c b/dlls/ole32/oleproxy.c
index d37c2cf..55aa3c5 100644
--- a/dlls/ole32/oleproxy.c
+++ b/dlls/ole32/oleproxy.c
@@ -206,7 +206,7 @@ getbuffer:
if (hres) return hres;
seekto.u.LowPart = 0;seekto.u.HighPart = 0;
- hres = IStream_Seek(pStm,seekto,SEEK_SET,&newpos);
+ hres = IStream_Seek(pStm,seekto,STREAM_SEEK_SET,&newpos);
if (hres) {
FIXME("IStream_Seek failed, %x\n",hres);
return hres;
diff --git a/dlls/ole32/rpc.c b/dlls/ole32/rpc.c
index 31b9eb1..027d0ee 100644
--- a/dlls/ole32/rpc.c
+++ b/dlls/ole32/rpc.c
@@ -1823,7 +1823,7 @@ HRESULT RPC_GetLocalClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
hres = IStream_Write(pStm,marshalbuffer,bufferlen,&res);
if (hres) goto out;
seekto.u.LowPart = 0;seekto.u.HighPart = 0;
- hres = IStream_Seek(pStm,seekto,SEEK_SET,&newpos);
+ hres = IStream_Seek(pStm,seekto,STREAM_SEEK_SET,&newpos);
TRACE("unmarshalling classfactory\n");
hres = CoUnmarshalInterface(pStm,&IID_IClassFactory,ppv);
@@ -1907,7 +1907,7 @@ static DWORD WINAPI local_server_thread(LPVOID param)
seekto.u.LowPart = 0;
seekto.u.HighPart = 0;
- hres = IStream_Seek(pStm,seekto,SEEK_SET,&newpos);
+ hres = IStream_Seek(pStm,seekto,STREAM_SEEK_SET,&newpos);
if (hres) {
FIXME("IStream_Seek failed, %x\n",hres);
CloseHandle(hPipe);
More information about the wine-cvs
mailing list