Handle \\.\<dosdevice> like <dosdevice> in CreateFile. Tested with

help of James Feeney <james@nurealm.net>.
This commit is contained in:
Marcus Meissner 2000-01-23 02:18:27 +00:00 committed by Alexandre Julliard
parent 3e2517caa7
commit dd7523d518
1 changed files with 6 additions and 2 deletions

View File

@ -438,8 +438,12 @@ HANDLE WINAPI CreateFileA( LPCSTR filename, DWORD access, DWORD sharing,
}
}
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))