First phase of multifilesystem enhancement
[captive.git] / src / libcaptive / client / lib.c
index 505a7d2..3847cde 100644 (file)
@@ -26,7 +26,7 @@
 #include "reactos/ntos/rtl.h"  /* for InitializeObjectAttributes() */
 #include "captive/unicode.h"
 #include <libgnomevfs/gnome-vfs-utils.h>       /* for gnome_vfs_unescape_string() */
-#include "captive/client.h"
+#include "captive/options.h"
 
 
 /* function will leave g_malloc()ed 'ObjectAttributes->ObjectName'!
@@ -50,7 +50,7 @@ const gchar *media_root;
         * On the other side it will somehow get managed automatically and it works even
         * without the trailing "\\." for root directory open - don't ask me why. :-)
         */
-       switch (captive_option_media) {
+       switch (captive_options->media) {
                case CAPTIVE_OPTION_MEDIA_CDROM: media_root="\\Device\\CdRom0";           break;        /* libcaptive/storage/cdrom.c */
                case CAPTIVE_OPTION_MEDIA_DISK:  media_root="\\Device\\CaptiveHarddisk0"; break;        /* libcaptive/storage/disk.c */
                default: