Module: wine Branch: master Commit: 2e11733f452f2f36ef1eca2f2d4d890ee84169af URL: http://source.winehq.org/git/wine.git/?a=commit;h=2e11733f452f2f36ef1eca2f2d...
Author: Huw Davies huw@codeweavers.com Date: Tue Apr 28 12:38:29 2009 +0100
ole32: Don't ask for a name if it's not required.
---
dlls/ole32/memlockbytes.c | 2 +- dlls/ole32/rpc.c | 2 +- dlls/ole32/storage32.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/ole32/memlockbytes.c b/dlls/ole32/memlockbytes.c index 16763cb..57acf37 100644 --- a/dlls/ole32/memlockbytes.c +++ b/dlls/ole32/memlockbytes.c @@ -160,7 +160,7 @@ HRESULT WINAPI GetHGlobalFromILockBytes(ILockBytes* plkbyt, HGLOBAL* phglobal) return S_OK; } /* It is not our lockbytes implementation, so use a more generic way */ - hres = ILockBytes_Stat(plkbyt,&stbuf,0); + hres = ILockBytes_Stat(plkbyt,&stbuf,STATFLAG_NONAME); if (hres != S_OK) { ERR("Cannot ILockBytes_Stat, %x\n",hres); return hres; diff --git a/dlls/ole32/rpc.c b/dlls/ole32/rpc.c index 1325063..9a34465 100644 --- a/dlls/ole32/rpc.c +++ b/dlls/ole32/rpc.c @@ -1904,7 +1904,7 @@ static DWORD WINAPI local_server_thread(LPVOID param)
TRACE("marshalling IClassFactory to client\n");
- hres = IStream_Stat(pStm,&ststg,0); + hres = IStream_Stat(pStm,&ststg,STATFLAG_NONAME); if (hres) return hres;
seekto.u.LowPart = 0; diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index 90328f0..748eac8 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -6310,7 +6310,7 @@ HRESULT WINAPI ReadClassStg(IStorage *pstg,CLSID *pclsid){ /* * read a STATSTG structure (contains the clsid) from the storage */ - hRes=IStorage_Stat(pstg,&pstatstg,STATFLAG_DEFAULT); + hRes=IStorage_Stat(pstg,&pstatstg,STATFLAG_NONAME);
if(SUCCEEDED(hRes)) *pclsid=pstatstg.clsid;