[vlc-commits] Win32 eject: use correct type for MCI_OPEN_PARMS structure

Jean-Baptiste Kempf git at videolan.org
Mon Jan 14 17:40:32 CET 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jan 14 18:40:05 2013 +0100| [3703b44d9fa8b10d635b3927ff981f216bee8df0] | committer: Jean-Baptiste Kempf

Win32 eject: use correct type for MCI_OPEN_PARMS structure

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

 modules/gui/eject.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/eject.c b/modules/gui/eject.c
index 80ba7f1..f188d93 100644
--- a/modules/gui/eject.c
+++ b/modules/gui/eject.c
@@ -128,7 +128,7 @@ static int intf_Eject( vlc_object_t *p_this, const char *psz_device )
     char psz_drive[4];
 
     memset( &op, 0, sizeof(MCI_OPEN_PARMS) );
-    op.lpstrDeviceType = (LPCSTR)MCI_DEVTYPE_CD_AUDIO;
+    op.lpstrDeviceType = (LPCTSTR)MCI_DEVTYPE_CD_AUDIO;
 
     strcpy( psz_drive, "X:" );
     psz_drive[0] = psz_device[0];



More information about the vlc-commits mailing list