ole32: Don't ask for a name if it's not required.

oldstable
Huw Davies 2009-04-28 12:38:29 +01:00 committed by Alexandre Julliard
parent 08a9bf7db8
commit 2e11733f45
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;