ole32: Accept STG_E_UNIMPLEMENTEDFUNCTION when ILockBytes implementation doesn't support locking.
Some custom implementations return it instead of STG_E_INVALIDFUNCTION.
This commit is contained in:
parent
07f8493895
commit
1f17334fc2
|
@ -5015,7 +5015,7 @@ static HRESULT StorageImpl_GrabLocks(StorageImpl *This, DWORD openFlags)
|
|||
hr = StorageImpl_LockRegionSync(This, offset, cb, LOCK_ONLYONCE);
|
||||
|
||||
/* If the ILockBytes doesn't support locking that's ok. */
|
||||
if (hr == STG_E_INVALIDFUNCTION) return S_OK;
|
||||
if (hr == STG_E_INVALIDFUNCTION || hr == STG_E_UNIMPLEMENTEDFUNCTION) return S_OK;
|
||||
else if (FAILED(hr)) return hr;
|
||||
|
||||
hr = S_OK;
|
||||
|
|
Loading…
Reference in New Issue