Commit c2779ed4 authored by Gildas Bazin's avatar Gildas Bazin

* src/misc/win32_specific.c: unicode portability fixes.

parent 9268e987
...@@ -156,7 +156,7 @@ void system_Configure( vlc_t *p_this, int *pi_argc, char *ppsz_argv[] ) ...@@ -156,7 +156,7 @@ void system_Configure( vlc_t *p_this, int *pi_argc, char *ppsz_argv[] )
msg_Info( p_this, "one instance mode ENABLED"); msg_Info( p_this, "one instance mode ENABLED");
/* Use a named mutex to check if another instance is already running */ /* Use a named mutex to check if another instance is already running */
if( ( hmutex = CreateMutex( NULL, TRUE, "VLC ipc "VERSION ) ) == NULL ) if( !( hmutex = CreateMutex( 0, TRUE, _T("VLC ipc ") _T(VERSION) ) ) )
{ {
/* Failed for some reason. Just ignore the option and go on as /* Failed for some reason. Just ignore the option and go on as
* normal. */ * normal. */
...@@ -195,8 +195,7 @@ void system_Configure( vlc_t *p_this, int *pi_argc, char *ppsz_argv[] ) ...@@ -195,8 +195,7 @@ void system_Configure( vlc_t *p_this, int *pi_argc, char *ppsz_argv[] )
/* Locate the window created by the IPC helper thread of the /* Locate the window created by the IPC helper thread of the
* 1st instance */ * 1st instance */
if( ( ipcwindow = FindWindow( NULL, "VLC ipc "VERSION ) ) if( !( ipcwindow = FindWindow( 0, _T("VLC ipc ") _T(VERSION) ) ) )
== NULL )
{ {
msg_Err( p_this, "one instance mode DISABLED " msg_Err( p_this, "one instance mode DISABLED "
"(couldn't find 1st instance of program)" ); "(couldn't find 1st instance of program)" );
...@@ -257,8 +256,8 @@ static void IPCHelperThread( vlc_object_t *p_this ) ...@@ -257,8 +256,8 @@ static void IPCHelperThread( vlc_object_t *p_this )
MSG message; MSG message;
ipcwindow = ipcwindow =
CreateWindow( "STATIC", /* name of window class */ CreateWindow( _T("STATIC"), /* name of window class */
"VLC ipc "VERSION, /* window title bar text */ _T("VLC ipc ") _T(VERSION), /* window title bar text */
0, /* window style */ 0, /* window style */
0, /* default X coordinate */ 0, /* default X coordinate */
0, /* default Y coordinate */ 0, /* default Y coordinate */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment