From: Henrik Gramner Date: Sun, 24 May 2015 20:57:00 +0000 (+0200) Subject: Prefer Unicode versions of Windows API calls X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=8f834d6ccc054d8c32d84310664dc07abac553ec;p=x264 Prefer Unicode versions of Windows API calls Just for consistency, doesn't affect behavior. --- 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;