Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
27e3b82d
Commit
27e3b82d
authored
Jun 21, 2006
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Jun 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix 2 failing test on native. Change Wine accordingly.
parent
ca9f266a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
path.c
dlls/ntdll/path.c
+2
-5
path.c
dlls/ntdll/tests/path.c
+2
-2
No files found.
dlls/ntdll/path.c
View file @
27e3b82d
...
...
@@ -356,11 +356,8 @@ ULONG WINAPI RtlIsDosDeviceName_U( PCWSTR dos_name )
end
=
p
-
1
;
if
(
end
>=
dos_name
&&
*
end
==
':'
)
end
--
;
/* remove trailing ':' before extension */
}
else
{
/* no extension, remove trailing spaces */
while
(
end
>=
dos_name
&&
*
end
==
' '
)
end
--
;
}
/* remove trailing spaces */
while
(
end
>=
dos_name
&&
*
end
==
' '
)
end
--
;
/* now we have a potential device name between start and end, check it */
switch
(
end
-
start
+
1
)
...
...
dlls/ntdll/tests/path.c
View file @
27e3b82d
...
...
@@ -105,13 +105,13 @@ static void test_RtlIsDosDeviceName(void)
{
"c:prn "
,
4
,
6
},
{
"c:prn......."
,
4
,
6
},
{
"c:prn... ..."
,
4
,
6
},
{
"c:NUL .... "
,
0
,
0
},
{
"c:NUL .... "
,
4
,
6
},
{
"c: . . ."
,
0
,
0
},
{
"c:"
,
0
,
0
},
{
" . . . :"
,
0
,
0
},
{
":"
,
0
,
0
},
{
"c:nul. . . :"
,
4
,
6
},
{
"c:nul . . :"
,
0
,
0
},
{
"c:nul . . :"
,
4
,
6
},
{
"c:nul0"
,
0
,
0
},
{
"c:prn:aaa"
,
0
,
0
},
{
"c:PRN:.txt"
,
4
,
6
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment