+ /* Check if a ramdisk file was given */
+ File = strstr(BootOptions2, "/RDPATH=");
+ if (File)
+ {
+ /* Copy the file name and everything else after it */
+ RtlStringCbCopyA(FileName, sizeof(FileName), File + 8);
+
+ /* Null-terminate */
+ *strstr(FileName, " ") = ANSI_NULL;
+
+ /* Load the ramdisk */
+ if (!RamDiskLoadVirtualFile(FileName))
+ {
+ UiMessageBox("Failed to load RAM disk file %s", FileName);
+ return ENOENT;
+ }
+ }
+