[vlc-commits] Use MessageBox() in a portable way

Pierre Ynard git at videolan.org
Mon Aug 22 23:08:02 CEST 2011


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Mon Aug 22 23:06:14 2011 +0200| [9a4c8ab01745eb763df207ae5c504e60a9e9952e] | committer: Pierre Ynard

Use MessageBox() in a portable way

MessageBoxA() isn't supported on WinCE

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9a4c8ab01745eb763df207ae5c504e60a9e9952e
---

 src/libvlc.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libvlc.c b/src/libvlc.c
index 3e6c53e..335687e 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -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;



More information about the vlc-commits mailing list