Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b9a3f8fa
Commit
b9a3f8fa
authored
Jun 24, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RtlGetFullPathName_U should remove the trailing dot on directory
names.
parent
0ea0f5ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
path.c
dlls/ntdll/path.c
+6
-1
path.c
dlls/ntdll/tests/path.c
+3
-0
No files found.
dlls/ntdll/path.c
View file @
b9a3f8fa
...
...
@@ -504,7 +504,12 @@ static inline void collapse_path( WCHAR *path, UINT mark )
}
/* skip to the next component */
while
(
*
p
&&
*
p
!=
'\\'
)
p
++
;
if
(
*
p
==
'\\'
)
p
++
;
if
(
*
p
==
'\\'
)
{
/* remove last dot in previous dir name */
if
(
p
>
path
+
mark
&&
p
[
-
1
]
==
'.'
)
memmove
(
p
-
1
,
p
,
(
strlenW
(
p
)
+
1
)
*
sizeof
(
WCHAR
)
);
else
p
++
;
}
}
/* remove trailing spaces and dots (yes, Windows really does that, don't ask) */
...
...
dlls/ntdll/tests/path.c
View file @
b9a3f8fa
...
...
@@ -239,6 +239,9 @@ static void test_RtlGetFullPathName_U()
{
"c:/test/.. "
,
"c:
\\
test
\\
"
,
NULL
},
{
"c:/TEST"
,
"c:
\\
test"
,
"test"
},
{
"c:/test/file"
,
"c:
\\
test
\\
file"
,
"file"
},
{
"c:/test./file"
,
"c:
\\
test
\\
file"
,
"file"
},
{
"c:/test../file"
,
"c:
\\
test.
\\
file"
,
"file"
},
{
"c:/test.. /file"
,
"c:
\\
test..
\\
file"
,
"file"
},
{
"c:/test/././file"
,
"c:
\\
test
\\
file"
,
"file"
},
{
"c:/test
\\
.
\\
.
\\
file"
,
"c:
\\
test
\\
file"
,
"file"
},
{
"c:/test/
\\
.
\\
.
\\
file"
,
"c:
\\
test
\\
file"
,
"file"
},
...
...
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