]> git.sesse.net Git - vlc/commitdiff
Revert wxwidgets.hpp change -- problem appears to have been that gui/wxwidgets had...
authorMark Moriarty <markfm@videolan.org>
Fri, 17 Nov 2006 02:15:07 +0000 (02:15 +0000)
committerMark Moriarty <markfm@videolan.org>
Fri, 17 Nov 2006 02:15:07 +0000 (02:15 +0000)
modules/gui/wxwidgets/wxwidgets.hpp

index 09d1f00dcd2bd9aa4f9ed5dead0e76feb06c544e..d8edcbf0950a624a22ceec3e8c2e4a763727c8ac 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * wxwidgets.hpp: Common headers for the wxwidges interface
+ * wxwidgets.hpp: Common headers for the wxwidgets interface
  *****************************************************************************
  * Copyright (C) 1999-2005 the VideoLAN team
  * $Id$
@@ -97,7 +97,7 @@ static inline char *wxFromLocale (const wxString& string)
 {
 #if defined( wxUSE_UNICODE )
 # if defined( WIN32 )
-    return (char *) wxConvCurrent->cWX2MB(string);
+    return FromWide ((const wchar_t *)string.c_str());
 #  define wxLocaleFree free
 # else
     return FromLocale (string.mb_str());