ole32: Accept only STG_E_INVALIDFUNCTION or success from LockRegionSync.

This commit is contained in:
Vincent Povirk 2015-03-10 14:41:10 -05:00 committed by Alexandre Julliard
parent c8791edbdf
commit 1645f7b9e3
1 changed files with 2 additions and 1 deletions

View File

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