ole32: Accept only STG_E_INVALIDFUNCTION or success from LockRegionSync.
This commit is contained in:
parent
c8791edbdf
commit
1645f7b9e3
|
@ -2959,7 +2959,8 @@ 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 (FAILED(hr)) return S_OK;
|
||||
if (hr == STG_E_INVALIDFUNCTION) return S_OK;
|
||||
else if (FAILED(hr)) return hr;
|
||||
|
||||
hr = S_OK;
|
||||
|
||||
|
|
Loading…
Reference in New Issue