summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--thread_win32.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c6cc40048c..02dc8ec767 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
-Sun Jun 17 16:20:50 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Jun 17 16:20:56 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread_win32.c (native_mutex_lock, native_mutex_destroy): fix for
+ USE_WIN32_MUTEX.
* thread_win32.c (native_cond_timedwait_ms): rename reserved pattern
name. user defined symbols should not start with __.
diff --git a/thread_win32.c b/thread_win32.c
index 2410cfae81..b77fdbb9a6 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -343,8 +343,8 @@ native_mutex_lock(rb_thread_lock_t *lock)
w32_mutex_lock(*lock);
#else
EnterCriticalSection(lock);
- return 0;
#endif
+ return 0;
}
static int
@@ -394,7 +394,7 @@ static void
native_mutex_destroy(rb_thread_lock_t *lock)
{
#if USE_WIN32_MUTEX
- w32_close_handle(lock);
+ w32_close_handle(*lock);
#else
DeleteCriticalSection(lock);
#endif