---- thread.c	2011-06-19 07:23:32.000000000 +0800
-+++ thread.c89.c	2011-06-19 07:23:42.000000000 +0800
+--- thread.c	2011-06-25 22:34:16.000000000 +0800
++++ thread.c89.c	2011-06-26 07:15:32.000000000 +0800
 @@ -141,11 +141,13 @@
  
  #ifdef PTHREAD_MUTEX_ADAPTIVE_NP

 		LeaveCriticalSection (&cond->win32_crit);
 	}
+	}
 #	endif /* !CONFIG_HAVE_WIN_COND */
 }
 #endif /* !_WIN32 */

+	}
 #elif !defined( _WIN32 )
 	posix_check_cmd (pthread_mutex_init (&mutex->pthread_mutex, NULL));
 #elif ( _WIN32_WINNT >= 0x0600 )
@@ -286,8 +288,11 @@
 #else
 /* Condition variable implementation for Windows XP */
 	EnterCriticalSection (&cond->win32_crit);
-	for (unsigned i = 0; i < cond->len; i++)
+	{
