Vincent Povirk : ole32: Accept only STG_E_INVALIDFUNCTION or success from LockRegionSync.
Module: wine Branch: master Commit: 1645f7b9e30e01bc92a8bfd1febe76d4856e046e URL: http://source.winehq.org/git/wine.git/?a=commit;h=1645f7b9e30e01bc92a8bfd1fe... Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Tue Mar 10 14:41:10 2015 -0500 ole32: Accept only STG_E_INVALIDFUNCTION or success from LockRegionSync. --- dlls/ole32/storage32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index 0a9b1ad..d3fb023 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -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;
participants (1)
-
Alexandre Julliard