ntdll: Fix failing test on windows.

This commit is contained in:
Paul Vriens 2006-08-18 10:57:40 +02:00 committed by Alexandre Julliard
parent 33bd852cd2
commit 54f18be44d
2 changed files with 3 additions and 2 deletions

View File

@ -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--)

View File

@ -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 },