Paul Vriens : ntdll: Fix failing test on windows.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Aug 18 14:20:54 CDT 2006
Module: wine
Branch: master
Commit: 54f18be44dec763d9c283aabc8bbf9d12b06346f
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=54f18be44dec763d9c283aabc8bbf9d12b06346f
Author: Paul Vriens <Paul.Vriens at xs4all.nl>
Date: Fri Aug 18 10:57:40 2006 +0200
ntdll: Fix failing test on windows.
---
dlls/ntdll/path.c | 2 +-
dlls/ntdll/tests/path.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/path.c b/dlls/ntdll/path.c
index 78ee9fd..84c15a4 100644
--- a/dlls/ntdll/path.c
+++ b/dlls/ntdll/path.c
@@ -339,7 +339,7 @@ ULONG WINAPI RtlIsDosDeviceName_U( PCWST
}
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--)
diff --git a/dlls/ntdll/tests/path.c b/dlls/ntdll/tests/path.c
index 14af1cf..14546f3 100644
--- a/dlls/ntdll/tests/path.c
+++ b/dlls/ntdll/tests/path.c
@@ -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 },
More information about the wine-cvs
mailing list