[vlc-commits] CDROM: use CreateFileA for opening drive letters

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


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jan 14 18:15:42 2013 +0100| [ba15fcb6e61aee6e0d8c8cbcd61ebf5db479811c] | committer: Jean-Baptiste Kempf

CDROM: use CreateFileA for opening drive letters

If I understood correctly, drive letters are always ANSI

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

 modules/access/vcd/cdrom.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/vcd/cdrom.c b/modules/access/vcd/cdrom.c
index dfab303..270f638 100644
--- a/modules/access/vcd/cdrom.c
+++ b/modules/access/vcd/cdrom.c
@@ -1016,7 +1016,7 @@ static int win32_vcd_open( vlc_object_t * p_this, const char *psz_dev,
 
     sprintf( psz_win32_drive, "\\\\.\\%c:", psz_dev[0] );
 
-    p_vcddev->h_device_handle = CreateFile( psz_win32_drive, GENERIC_READ,
+    p_vcddev->h_device_handle = CreateFileA( psz_win32_drive, GENERIC_READ,
                                             FILE_SHARE_READ | FILE_SHARE_WRITE,
                                             NULL, OPEN_EXISTING,
                                             FILE_FLAG_NO_BUFFERING |



More information about the vlc-commits mailing list