Michael Jung : ole32: Avoid leaving a critical section twice.

Alexandre Julliard julliard at winehq.org
Fri Dec 21 07:28:27 CST 2007


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

Author: Michael Jung <mjung at iss.tu-darmstadt.de>
Date:   Fri Dec 21 08:18:35 2007 +0100

ole32: Avoid leaving a critical section twice.

---

 dlls/ole32/moniker.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/ole32/moniker.c b/dlls/ole32/moniker.c
index cbb89e5..8511a9f 100644
--- a/dlls/ole32/moniker.c
+++ b/dlls/ole32/moniker.c
@@ -817,11 +817,13 @@ RunningObjectTableImpl_NoteChangeTime(IRunningObjectTable* iface,
                 }
                 break;
             }
-            break;
+
+            goto done;
         }
     }
     LeaveCriticalSection(&This->lock);
 
+done:
     TRACE("-- 0x08%x\n", hr);
     return hr;
 }




More information about the wine-cvs mailing list