Handle \\.\<dosdevice> like <dosdevice> in CreateFile. Tested with
help of James Feeney <james@nurealm.net>.
diff --git a/files/file.c b/files/file.c
index 2c373d2..e805994 100644
--- a/files/file.c
+++ b/files/file.c
@@ -438,8 +438,12 @@
}
}
- if (!strncmp(filename, "\\\\.\\", 4))
- return DEVICE_Open( filename+4, access, sa );
+ if (!strncmp(filename, "\\\\.\\", 4)) {
+ if (!DOSFS_GetDevice( filename ))
+ return DEVICE_Open( filename+4, access, sa );
+ else
+ filename+=4; /* fall into DOSFS_Device case below */
+ }
/* If the name still starts with '\\', it's a UNC name. */
if (!strncmp(filename, "\\\\", 2))