Ensure correct full path returned when GetFullPathName supplied a path
relative from the root of the drive 'eg '\windows\system'.
diff --git a/files/dos_fs.c b/files/dos_fs.c
index caf49fb..563abf7 100644
--- a/files/dos_fs.c
+++ b/files/dos_fs.c
@@ -1238,6 +1238,8 @@
if (!name[0]) return 0;
+ TRACE("passed '%s'\n", name);
+
if (name[1]==':')
/*drive letter given */
{
@@ -1253,8 +1255,11 @@
{
if (driveletter)
drivecur[0]=driveletter;
- else
+ else if ((name[0]=='\\') || (name[0]=='/'))
+ strcpy(drivecur,"\\");
+ else
strcpy(drivecur,".");
+
if (!DOSFS_GetFullName( drivecur, FALSE, &full_name ))
{
FIXME("internal: error getting drive/path\n");