* mount.cc (mount_info::from_fstab): Skip native path prefix in
module path.
This commit is contained in:
@@ -871,7 +871,8 @@ bool
|
||||
mount_info::from_fstab (bool user)
|
||||
{
|
||||
tmp_pathbuf tp;
|
||||
PWCHAR path = tp.w_get ();
|
||||
PWCHAR path_buf = tp.w_get ();
|
||||
PWCHAR path = path_buf;
|
||||
PWCHAR w;
|
||||
|
||||
if (!GetModuleFileNameW (GetModuleHandleW (L"cygwin1.dll"),
|
||||
@@ -880,6 +881,12 @@ mount_info::from_fstab (bool user)
|
||||
debug_printf ("GetModuleFileNameW, %E");
|
||||
return false;
|
||||
}
|
||||
if (!wcsncmp (path, L"\\\\?\\", 4))
|
||||
{
|
||||
path += 4;
|
||||
if (path[1] != L':')
|
||||
*(path += 2) = L'\\';
|
||||
}
|
||||
w = wcsrchr (path, L'\\');
|
||||
if (w)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user