[x264-devel] Prefer Unicode versions of Windows API calls
Henrik Gramner
git at videolan.org
Sun Jul 26 22:26:31 CEST 2015
x264 | branch: master | Henrik Gramner <henrik at gramner.com> | Sun May 24 22:57:00 2015 +0200| [8f834d6ccc054d8c32d84310664dc07abac553ec] | committer: Henrik Gramner
Prefer Unicode versions of Windows API calls
Just for consistency, doesn't affect behavior.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=8f834d6ccc054d8c32d84310664dc07abac553ec
---
common/win32thread.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/win32thread.c b/common/win32thread.c
index 2b8fe07..3a3bec6 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;
More information about the x264-devel
mailing list