]> git.sesse.net Git - vlc/commitdiff
Use MessageBox() in a portable way
authorPierre Ynard <linkfanel@yahoo.fr>
Mon, 22 Aug 2011 21:06:14 +0000 (23:06 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Mon, 22 Aug 2011 21:06:14 +0000 (23:06 +0200)
MessageBoxA() isn't supported on WinCE

src/libvlc.c

index 3e6c53eb52afea15c4cc9b40fa6c137058f73b91..335687ee084fec14b90d3b3b8cc598058ce5baf3 100644 (file)
@@ -271,9 +271,9 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
     if( config_LoadCmdLine( p_libvlc, i_argc, ppsz_argv, &vlc_optind ) )
     {
 #ifdef WIN32
-        MessageBoxA (NULL, "The command line options could not be parsed.\n"
-                     "Make sure they are valid.", "VLC media player",
-                     MB_OK|MB_ICONERROR);
+        MessageBox (NULL, TEXT("The command line options could not be parsed.\n"
+                    "Make sure they are valid."), TEXT("VLC media player"),
+                    MB_OK|MB_ICONERROR);
 #endif
         module_EndBank (true);
         return VLC_EGENERIC;