]> git.sesse.net Git - vlc/commitdiff
Fix concatenation of Unicode string literals.
authorFelix Abecassis <felix.abecassis@gmail.com>
Fri, 29 Nov 2013 16:41:27 +0000 (17:41 +0100)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 30 Nov 2013 13:27:40 +0000 (15:27 +0200)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
src/config/help.c
src/win32/specific.c

index 20e4f7cb6263e9f1530be8f20edbf1e320209bd3..155dc507fa985c0f59a7da5d1cfb2f34aa2174ef 100644 (file)
@@ -685,7 +685,7 @@ static void ShowConsole( void )
      * Unicode/locale subsystem. By default, we have the obsolecent OEM code
      * page (e.g. CP437 or CP850). */
     SetConsoleOutputCP (GetACP ());
-    SetConsoleTitle (TEXT("VLC media player version "PACKAGE_VERSION));
+    SetConsoleTitle (TEXT("VLC media player version ") TEXT(PACKAGE_VERSION));
 
     freopen( "CONOUT$", "w", stderr );
     freopen( "CONIN$", "r", stdin );
index 499a20c09ef7c624d1f2fa64ea9187487ce065ea..44529df0a153001481e79dbf7351d0686fb86115 100644 (file)
@@ -109,7 +109,7 @@ void system_Configure( libvlc_int_t *p_this, int i_argc, const char *const ppsz_
         msg_Info( p_this, "one instance mode ENABLED");
 
         /* Use a named mutex to check if another instance is already running */
-        if( !( hmutex = CreateMutex( 0, TRUE, L"VLC ipc "VERSION ) ) )
+        if( !( hmutex = CreateMutex( 0, TRUE, L"VLC ipc " TEXT(VERSION) ) ) )
         {
             /* Failed for some reason. Just ignore the option and go on as
              * normal. */
@@ -154,7 +154,7 @@ void system_Configure( libvlc_int_t *p_this, int i_argc, const char *const ppsz_
 
             /* Locate the window created by the IPC helper thread of the
              * 1st instance */
-            if( !( ipcwindow = FindWindow( 0, L"VLC ipc "VERSION ) ) )
+            if( !( ipcwindow = FindWindow( 0, L"VLC ipc " TEXT(VERSION) ) ) )
             {
                 msg_Err( p_this, "one instance mode DISABLED "
                          "(couldn't find 1st instance of program)" );
@@ -221,7 +221,7 @@ static unsigned __stdcall IPCHelperThread( void *data )
 
     ipcwindow =
         CreateWindow( L"STATIC",                     /* name of window class */
-                  L"VLC ipc "VERSION,               /* window title bar text */
+                  L"VLC ipc " TEXT(VERSION),               /* window title bar text */
                   0,                                         /* window style */
                   0,                                 /* default X coordinate */
                   0,                                 /* default Y coordinate */
@@ -331,7 +331,7 @@ void system_End(void)
     /* FIXME: thread-safety... */
     if (p_helper)
     {
-        if( ( ipcwindow = FindWindow( 0, L"VLC ipc "VERSION ) ) != 0 )
+        if( ( ipcwindow = FindWindow( 0, L"VLC ipc " TEXT(VERSION) ) ) != 0 )
         {
             SendMessage( ipcwindow, WM_QUIT, 0, 0 );
         }