Vincent Povirk : ole32: Accept only STG_E_INVALIDFUNCTION or success from LockRegionSync.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Mar 11 10:00:42 CDT 2015
Module: wine
Branch: master
Commit: 1645f7b9e30e01bc92a8bfd1febe76d4856e046e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1645f7b9e30e01bc92a8bfd1febe76d4856e046e
Author: Vincent Povirk <vincent at 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;
More information about the wine-cvs
mailing list