First phase of multifilesystem enhancement
[captive.git] / src / libcaptive / storage / cdrom.c
index fdf09da..e149b57 100644 (file)
 #include "config.h"
 
 #include "captive/storage.h"   /* self */
-#include "captive/client.h"
 #include "media.h"
 #include <glib/gmessages.h>
 #include "captive/unicode.h"
 #include "reactos/ddk/status.h"        /* for NT_SUCCESS() */
+#include "captive/options.h"
 
 
 /**
  * captive_cdrom_init:
  *
  * Creates system device "\Device\CdRom%d" providing readonly access
- * to the given #captive_image_iochannel as emulation of CD-ROM driver.
+ * to the given #image_iochannel as emulation of CD-ROM driver.
  *
  * libcaptive currently supports just one drive and thus "\Device\CdRom0"
  * is always created. It is forbidden to call this function twice.
@@ -43,7 +43,7 @@ gboolean captive_cdrom_init(void)
 static struct captive_DriverObject cdrom_captive_DriverObject;
 NTSTATUS err;
 
-       g_return_val_if_fail(captive_image_iochannel!=NULL,FALSE);
+       g_return_val_if_fail(captive_options->image_iochannel!=NULL,FALSE);
 
        cdrom_captive_DriverObject.DiskGeometry.BytesPerSector=2048;
        cdrom_captive_DriverObject.DiskGeometry.MediaType=RemovableMedia;