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:
Dmitry Timoshkov 2015-07-03 15:27:22 +08:00 committed by Alexandre Julliard
parent 07f8493895
commit 1f17334fc2
1 changed files with 1 additions and 1 deletions

View File

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