ole32: Don't ask for a name if it's not required.
This commit is contained in:
parent
08a9bf7db8
commit
2e11733f45
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue