+2008-04-29 Corinna Vinschen <corinna@vinschen.de>
+
+ * mount.cc (mount_info::from_fstab): Skip native path prefix in
+ module path.
+
2008-04-29 Corinna Vinschen <corinna@vinschen.de>
* syscalls.cc (rename): Use volume serial numbers stored in path_conv
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"),
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)
{