Commit ee5c46a5 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ntdll: Also accept \\? as a UNC or device path in RtlDetermineDosPathNameType_U().

parent f0ad5b5c
......@@ -244,10 +244,10 @@ DOS_PATHNAME_TYPE WINAPI RtlDetermineDosPathNameType_U( PCWSTR path )
if (IS_SEPARATOR(path[0]))
{
if (!IS_SEPARATOR(path[1])) return ABSOLUTE_PATH; /* "/foo" */
if (path[2] != '.') return UNC_PATH; /* "//foo" */
if (IS_SEPARATOR(path[3])) return DEVICE_PATH; /* "//./foo" */
if (path[3]) return UNC_PATH; /* "//.foo" */
return UNC_DOT_PATH; /* "//." */
if (path[2] != '.' && path[2] != '?') return UNC_PATH; /* "//foo" */
if (IS_SEPARATOR(path[3])) return DEVICE_PATH; /* "//./foo" or "//?/foo" */
if (path[3]) return UNC_PATH; /* "//.foo" or "//?foo" */
return UNC_DOT_PATH; /* "//." or "//?" */
}
else
{
......
......@@ -68,6 +68,13 @@ static void test_RtlDetermineDosPathNameType_U(void)
{ "//.foo", 1 },
{ "\\\\.", 7 },
{ "//.", 7 },
{ "\\\\?\\foo", 6 },
{ "//?/foo", 6 },
{ "/\\?/foo", 6 },
{ "\\\\?foo", 1 },
{ "//?foo", 1 },
{ "\\\\?", 7 },
{ "//?", 7 },
{ NULL, 0 }
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment