Use mci command for close for now.

This commit is contained in:
rocky
2005-03-09 02:36:25 +00:00
parent 76d8cbe880
commit 86324c60b7

View File

@@ -1,5 +1,5 @@
/* /*
$Id: win32.c,v 1.28 2005/03/09 02:19:54 rocky Exp $ $Id: win32.c,v 1.29 2005/03/09 02:36:25 rocky Exp $
Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com> Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
@@ -26,7 +26,7 @@
# include "config.h" # include "config.h"
#endif #endif
static const char _rcsid[] = "$Id: win32.c,v 1.28 2005/03/09 02:19:54 rocky Exp $"; static const char _rcsid[] = "$Id: win32.c,v 1.29 2005/03/09 02:36:25 rocky Exp $";
#include <cdio/cdio.h> #include <cdio/cdio.h>
#include <cdio/sector.h> #include <cdio/sector.h>
@@ -822,8 +822,8 @@ cdio_is_device_win32(const char *source_name)
driver_return_code_t driver_return_code_t
close_tray_win32 (const char *psz_win32_drive) close_tray_win32 (const char *psz_win32_drive)
{ {
#if 0 #if 1
return open_close_media_win32(psz_win32_drive, MCI_SET_DOOR_CLOSED); return open_close_media_win32(psz_win32_drive, MCI_SET_DOOR_CLOSED|MCI_WAIT);
#else #else
#ifdef HAVE_WIN32_CDROM #ifdef HAVE_WIN32_CDROM
if ( WIN_NT ) { if ( WIN_NT ) {
@@ -834,8 +834,8 @@ close_tray_win32 (const char *psz_win32_drive)
#else #else
return DRIVER_OP_UNSUPPORTED; return DRIVER_OP_UNSUPPORTED;
#endif #endif
}
#endif #endif
}
/*! /*!
Initialization routine. This is the only thing that doesn't Initialization routine. This is the only thing that doesn't