From 9b0e93aa59205fa6e35f0d8e5c2065c6e806f114 Mon Sep 17 00:00:00 2001 From: rpj Date: Thu, 6 Aug 1998 08:32:53 +0000 Subject: *** empty log message *** --- misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'misc.c') diff --git a/misc.c b/misc.c index 7905488..086521e 100644 --- a/misc.c +++ b/misc.c @@ -25,12 +25,12 @@ pthread_once(pthread_once_t *once_control, the DLL is unloaded. */ /* An atomic test-and-set of the "once" flag. */ - EnterCriticalSection(once_control->lock); + EnterCriticalSection(&once_control->lock); if (once_control->flag == 0) { flag = once_control->flag = 1; } - LeaveCriticalSection(once_control->lock); + LeaveCriticalSection(&once_control->lock); if (flag) { -- cgit v1.2.3