From 8f834d6ccc054d8c32d84310664dc07abac553ec Mon Sep 17 00:00:00 2001 From: Henrik Gramner Date: Sun, 24 May 2015 22:57:00 +0200 Subject: [PATCH] Prefer Unicode versions of Windows API calls Just for consistency, doesn't affect behavior. --- common/win32thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/win32thread.c b/common/win32thread.c index 2b8fe073..3a3bec62 100644 --- a/common/win32thread.c +++ b/common/win32thread.c @@ -138,7 +138,7 @@ int x264_pthread_cond_init( x264_pthread_cond_t *cond, const x264_pthread_condat if( !win32_cond ) return -1; cond->ptr = win32_cond; - win32_cond->semaphore = CreateSemaphore( NULL, 0, 0x7fffffff, NULL ); + win32_cond->semaphore = CreateSemaphoreW( NULL, 0, 0x7fffffff, NULL ); if( !win32_cond->semaphore ) return -1; @@ -147,7 +147,7 @@ int x264_pthread_cond_init( x264_pthread_cond_t *cond, const x264_pthread_condat if( x264_pthread_mutex_init( &win32_cond->mtx_broadcast, NULL ) ) return -1; - win32_cond->waiters_done = CreateEvent( NULL, FALSE, FALSE, NULL ); + win32_cond->waiters_done = CreateEventW( NULL, FALSE, FALSE, NULL ); if( !win32_cond->waiters_done ) return -1; -- 2.39.2