* mount.cc (mount_info::get_mounts_here): Don't subtract 2 from
Length if it's 0 anyway.
This commit is contained in:
parent
975f052c60
commit
2bd94f906d
|
@ -1,3 +1,8 @@
|
||||||
|
2008-08-15 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* mount.cc (mount_info::get_mounts_here): Don't subtract 2 from
|
||||||
|
Length if it's 0 anyway.
|
||||||
|
|
||||||
2008-08-15 Corinna Vinschen <corinna@vinschen.de>
|
2008-08-15 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* mount.cc (mount_info::create_root_entry): Create default cygdrive
|
* mount.cc (mount_info::create_root_entry): Create default cygdrive
|
||||||
|
|
|
@ -355,7 +355,8 @@ mount_info::get_mounts_here (const char *parent_dir, int parent_dir_len,
|
||||||
last_slash + 1);
|
last_slash + 1);
|
||||||
}
|
}
|
||||||
RtlCreateUnicodeStringFromAsciiz (cygd, cygdrive + 1);
|
RtlCreateUnicodeStringFromAsciiz (cygd, cygdrive + 1);
|
||||||
cygd->Length -= 2; // Strip trailing slash
|
if (cygd->Length)
|
||||||
|
cygd->Length -= 2; // Strip trailing slash
|
||||||
return n_mounts;
|
return n_mounts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue