Make disk partition handling architecture dependent, as not
[reactos.git] / reactos / boot / freeldr / freeldr / reactos / arcname.c
index 9b1f148..f65ca5b 100644 (file)
@@ -43,7 +43,21 @@ BOOL DissectArcPath(char *ArcPath, char *BootPath, ULONG* BootDrive, ULONG* Boot
                if (p == NULL)
                        return FALSE;
                p++;
-               *BootPartition = 0;
+               *BootPartition = 0xff;
+       }
+       else if (strnicmp(p, "cdrom(", 6) == 0)
+       {
+               /*
+                * cdrom path:
+                *  multi(0)disk(0)cdrom(x)\path
+                */
+               p = p + 6;
+               *BootDrive = atoi(p);
+               p = strchr(p, ')');
+               if (p == NULL)
+                       return FALSE;
+               p++;
+               *BootPartition = 0xff;
        }
        else if (strnicmp(p, "rdisk(", 6) == 0)
        {