* mono-path.c (mono_path_canonicalize): Adding support for UNC
paths on Windows.
Contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=123795
+2009-01-19 Bill Holmes <billholmes54@gmail.com>
+
+ * mono-path.c (mono_path_canonicalize): Adding support for UNC
+ paths on Windows.
+
+ Contributed under MIT/X11 license.
+
2009-01-18 Zoltan Varga <vargaz@gmail.com>
* mono-mmap.c: Applied patch from Koushik Dutta
lastpos = pos + 1;
pos = strchr (lastpos, G_DIR_SEPARATOR);
}
+
+#ifdef PLATFORM_WIN32 /* For UNC paths the first '\' is removed. */
+ if (*(lastpos-1) == G_DIR_SEPARATOR && *(lastpos-2) == G_DIR_SEPARATOR)
+ lastpos = lastpos-1;
+#endif
if (dest != lastpos) strcpy (dest, lastpos);
return g_strreverse (abspath);