Author: mturk
Date: Wed Sep  2 15:39:58 2009
New Revision: 810575

URL: http://svn.apache.org/viewvc?rev=810575&view=rev
Log:
Fix typo

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c?rev=810575&r1=810574&r2=810575&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c Wed Sep  2 
15:39:58 2009
@@ -131,13 +131,13 @@
         rc = 0;
         ws = WaitForMultipleObjectsEx(2, wh, FALSE, INFINITE, TRUE);
 
-        else if (ws == WAIT_OBJECT_0) {
+        if (ws == WAIT_OBJECT_0) {
             /* Signal event is set
              * TODO: Deliver a signal
              */
             rc = ACR_EINTR;
         }
-        if (ws == WAIT_OBJECT_0 + 1 || ws == WAIT_ABANDONED_0 + 1) {
+        else if (ws == WAIT_OBJECT_0 + 1 || ws == WAIT_ABANDONED_0 + 1) {
             /* We got the lock */
             return 0;
         }


Reply via email to