ole32: Fix sanity check timeout.

Vincent Povirk madewokherd at gmail.com
Thu Mar 12 14:56:04 CDT 2015


I meant for this to check once every 0.5 seconds, not after every lock
attempt that happens at least 0.5 seconds since the loop started. It
shouldn't hurt anything, but I don't think it's worth checking so
frequently.
-------------- next part --------------
From fde2898962260776147ddbbceba582576f9b8f77 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Thu, 12 Mar 2015 14:46:54 -0500
Subject: [PATCH] ole32: Fix sanity check timeout.

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

diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c
index b4401a6..e8ede6b 100644
--- a/dlls/ole32/storage32.c
+++ b/dlls/ole32/storage32.c
@@ -2904,6 +2904,7 @@ static HRESULT StorageImpl_LockRegionSync(StorageImpl *This, ULARGE_INTEGER offs
                  *
                  * This can collide with another attempt to open the file in
                  * exclusive mode, but it's unlikely, and someone would fail anyway. */
+                last_sanity_check = current_time;
                 hr = ILockBytes_LockRegion(This->lockBytes, sanity_offset, sanity_cb, 0);
                 if (hr == STG_E_ACCESSDENIED || hr == STG_E_LOCKVIOLATION)
                     break;
-- 
2.1.0



More information about the wine-patches mailing list