Commit 1645f7b9 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

ole32: Accept only STG_E_INVALIDFUNCTION or success from LockRegionSync.

parent c8791edb
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment