ntdll: Fix failing test on windows.
This commit is contained in:
parent
33bd852cd2
commit
54f18be44d
|
@ -339,7 +339,7 @@ ULONG WINAPI RtlIsDosDeviceName_U( PCWSTR dos_name )
|
|||
}
|
||||
|
||||
end = dos_name + strlenW(dos_name) - 1;
|
||||
if (end >= dos_name && *end == ':') end--; /* remove trailing ':' */
|
||||
while (end >= dos_name && *end == ':') end--; /* remove all trailing ':' */
|
||||
|
||||
/* find start of file name */
|
||||
for (start = end; start >= dos_name; start--)
|
||||
|
|
|
@ -101,7 +101,8 @@ static void test_RtlIsDosDeviceName(void)
|
|||
{ "", 0, 0 },
|
||||
{ "\\\\foo\\nul", 0, 0 },
|
||||
{ "c:\\nul:", 6, 6 },
|
||||
{ "c:\\nul::", 0, 0 },
|
||||
{ "c:\\nul::", 6, 6 },
|
||||
{ "c:\\nul::::::", 6, 6 },
|
||||
{ "c:prn ", 4, 6 },
|
||||
{ "c:prn.......", 4, 6 },
|
||||
{ "c:prn... ...", 4, 6 },
|
||||
|
|
Loading…
Reference in New Issue