Francois Gouget : ole32: Fix StorageImpl_LockRegionSync() to actually wait between locking attempts.

Alexandre Julliard julliard at winehq.org
Tue Jun 17 14:40:50 CDT 2014


Module: wine
Branch: master
Commit: 809b6aeab2c6cfa4ec2a24137f316353fd28f37d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=809b6aeab2c6cfa4ec2a24137f316353fd28f37d

Author: Francois Gouget <fgouget at free.fr>
Date:   Mon Jun 16 18:23:41 2014 +0200

ole32: Fix StorageImpl_LockRegionSync() to actually wait between locking attempts.

---

 dlls/ole32/storage32.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c
index 757138d..f425d87 100644
--- a/dlls/ole32/storage32.c
+++ b/dlls/ole32/storage32.c
@@ -2874,6 +2874,7 @@ static HRESULT StorageImpl_LockRegionSync(StorageImpl *This, ULARGE_INTEGER offs
     ULARGE_INTEGER cb, DWORD dwLockType)
 {
     HRESULT hr;
+    int delay = 0;
 
     /* if it's a FileLockBytesImpl use LockFileEx in blocking mode */
     if (SUCCEEDED(FileLockBytesImpl_LockRegionSync(This->lockBytes, offset, cb)))
@@ -2882,8 +2883,6 @@ static HRESULT StorageImpl_LockRegionSync(StorageImpl *This, ULARGE_INTEGER offs
     /* otherwise we have to fake it based on an async lock */
     do
     {
-        int delay=0;
-
         hr = ILockBytes_LockRegion(This->lockBytes, offset, cb, dwLockType);
 
         if (hr == STG_E_ACCESSDENIED)




More information about the wine-cvs mailing list