Lines Matching defs:drive
425 // will find a drive letter which maps to the path's device, so
426 // that we return a path starting with a drive letter.
432 // Get the mapping of drive letters to device paths.
437 DLOG(ERROR) << "Failed to get drive mapping.";
441 // The drive mapping is a sequence of null terminated strings.
445 char16_t drive[] = u" :";
447 // For each string in the drive mapping, get the junction that links
449 // know that |drive| is the real path prefix.
451 drive[0] = drive_map_ptr[0]; // Copy the drive letter.
453 if (QueryDosDevice(ToWCharT(drive), ToWCharT(device_path_as_string),
459 FilePath(drive + nt_device_path.value().substr(
464 // Move to the next drive letter string, which starts one
470 // No drive matched. The path does not start with a device junction
471 // that is mounted as a drive letter. This means there is no drive