[vlc-commits] Win32: fix eject behaviour with UNICODE
Jean-Baptiste Kempf
git at videolan.org
Tue Jan 15 00:34:42 CET 2013
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jan 15 00:07:22 2013 +0100| [d56c90bb1ffd0da1b413d1867afa330b76ae14fb] | committer: Jean-Baptiste Kempf
Win32: fix eject behaviour with UNICODE
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d56c90bb1ffd0da1b413d1867afa330b76ae14fb
---
modules/gui/eject.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/gui/eject.c b/modules/gui/eject.c
index f188d93..03277e3 100644
--- a/modules/gui/eject.c
+++ b/modules/gui/eject.c
@@ -34,6 +34,7 @@
#include <vlc_common.h>
#include <vlc_fs.h>
+#include <vlc_charset.h>
#if defined( WIN32 )
# include <mmsystem.h>
@@ -132,7 +133,7 @@ static int intf_Eject( vlc_object_t *p_this, const char *psz_device )
strcpy( psz_drive, "X:" );
psz_drive[0] = psz_device[0];
- op.lpstrElementName = psz_drive;
+ op.lpstrElementName = ToT(psz_drive);
/* Set the flags for the device type */
i_flags = MCI_OPEN_TYPE | MCI_OPEN_TYPE_ID |
More information about the vlc-commits
mailing list