[vlc-commits] Win32: better eject code for UNICODE-APIs
Jean-Baptiste Kempf
git at videolan.org
Tue Jan 15 11:30:09 CET 2013
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jan 15 11:29:39 2013 +0100| [14de778fc3f56690c78b65f41be7ff158fe642b8] | committer: Jean-Baptiste Kempf
Win32: better eject code for UNICODE-APIs
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=14de778fc3f56690c78b65f41be7ff158fe642b8
---
modules/gui/eject.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/gui/eject.c b/modules/gui/eject.c
index 03277e3..5fae5ac 100644
--- a/modules/gui/eject.c
+++ b/modules/gui/eject.c
@@ -126,14 +126,14 @@ static int intf_Eject( vlc_object_t *p_this, const char *psz_device )
#if defined(WIN32)
MCI_OPEN_PARMS op;
DWORD i_flags;
- char psz_drive[4];
+ TCHAR psz_drive[4];
memset( &op, 0, sizeof(MCI_OPEN_PARMS) );
op.lpstrDeviceType = (LPCTSTR)MCI_DEVTYPE_CD_AUDIO;
- strcpy( psz_drive, "X:" );
+ _tcscpy( psz_drive, TEXT("X:") );
psz_drive[0] = psz_device[0];
- op.lpstrElementName = ToT(psz_drive);
+ op.lpstrElementName = 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