"fixed" the combobox issue
[instimg] / src / rawdisk.c
index b2576ba..559f61f 100644 (file)
@@ -7,6 +7,8 @@
 #include <winioctl.h>
 #include "rawdisk.h"
 
 #include <winioctl.h>
 #include "rawdisk.h"
 
+/*#define DBG_FAKE_DISKS*/
+
 static GUID guid_iface_disk = {0x53f56307, 0xb6bf, 0x11d0, {0x94, 0xf2, 0x00, 0xa0, 0xc9, 0x1e, 0xfb, 0x8b}};
 
 int rawdisk_detect(struct rawdisk_device *disks, int max_disks)
 static GUID guid_iface_disk = {0x53f56307, 0xb6bf, 0x11d0, {0x94, 0xf2, 0x00, 0xa0, 0xc9, 0x1e, 0xfb, 0x8b}};
 
 int rawdisk_detect(struct rawdisk_device *disks, int max_disks)
@@ -77,5 +79,19 @@ int rawdisk_detect(struct rawdisk_device *disks, int max_disks)
                devidx++;
        }
 
                devidx++;
        }
 
+#ifdef DBG_FAKE_DISKS
+       {
+               int i;
+               for(i=0; i<3; i++) {
+                       char buf[32];
+                       sprintf(buf, "\\\\?\\fake\\disk\\%d", i);
+                       disks[count].path = strdup(buf);
+                       sprintf(buf, "FAKE_DISK_%d", i);
+                       disks[count].name = strdup(buf);
+                       count++;
+               }
+       }
+#endif
+
        return count;
 }
        return count;
 }