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
41e25208
Commit
41e25208
authored
Jan 15, 2004
by
Mike McCormack
Committed by
Alexandre Julliard
Jan 15, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preserve trailing backslashes in GetFullPathName.
parent
354f6629
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
path.c
dlls/kernel/tests/path.c
+5
-8
dos_fs.c
files/dos_fs.c
+2
-5
No files found.
dlls/kernel/tests/path.c
View file @
41e25208
...
...
@@ -112,14 +112,11 @@ static void test_ValidPathA(CHAR *curdir, CHAR *subdir, CHAR *filename,
len
=
GetFullPathNameA
(
subpath
,
MAX_PATH
,
tmpstr
,
&
strptr
);
ok
(
len
,
"GetFullPathNameA failed for: '%s'"
,
subpath
);
if
(
HAS_TRAIL_SLASH_A
(
subpath
))
{
/* Wine strips off the trailing '\\'. Neither Win98 nor Win2k do this. */
todo_wine
{
ok
(
strptr
==
NULL
,
"%s: GetFullPathNameA should not return a filename ptr"
,
errstr
);
ok
(
lstrcmpiA
(
fullpath
,
tmpstr
)
==
0
,
"%s: GetFullPathNameA returned '%s' instead of '%s'"
,
errstr
,
tmpstr
,
fullpath
);
}
ok
(
strptr
==
NULL
,
"%s: GetFullPathNameA should not return a filename ptr"
,
errstr
);
ok
(
lstrcmpiA
(
fullpath
,
tmpstr
)
==
0
,
"%s: GetFullPathNameA returned '%s' instead of '%s'"
,
errstr
,
tmpstr
,
fullpath
);
}
else
{
ok
(
lstrcmpiA
(
strptr
,
filename
)
==
0
,
"%s: GetFullPathNameA returned '%s' instead of '%s'"
,
...
...
files/dos_fs.c
View file @
41e25208
...
...
@@ -1313,9 +1313,6 @@ static DWORD DOSFS_DoGetFullPathName( LPCWSTR name, DWORD len, LPWSTR result )
}
if
(
full_name
.
short_name
[
namelen
-
1
]
==
'.'
)
full_name
.
short_name
[(
namelen
--
)
-
1
]
=
0
;
if
(
!
driveletter
)
if
(
full_name
.
short_name
[
namelen
-
1
]
==
'\\'
)
full_name
.
short_name
[(
namelen
--
)
-
1
]
=
0
;
TRACE
(
"got %s
\n
"
,
debugstr_w
(
full_name
.
short_name
));
/* If the lpBuffer buffer is too small, the return value is the
...
...
@@ -1383,7 +1380,7 @@ DWORD WINAPI GetFullPathNameA( LPCSTR name, DWORD len, LPSTR buffer,
if
(
lastpart
)
{
LPSTR
p
=
buffer
+
strlen
(
buffer
);
LPSTR
p
=
buffer
+
strlen
(
buffer
)
-
1
;
if
(
*
p
!=
'\\'
)
{
...
...
@@ -1409,7 +1406,7 @@ DWORD WINAPI GetFullPathNameW( LPCWSTR name, DWORD len, LPWSTR buffer,
DWORD
ret
=
DOSFS_DoGetFullPathName
(
name
,
len
,
buffer
);
if
(
ret
&&
(
ret
<=
len
)
&&
buffer
&&
lastpart
)
{
LPWSTR
p
=
buffer
+
strlenW
(
buffer
);
LPWSTR
p
=
buffer
+
strlenW
(
buffer
)
-
1
;
if
(
*
p
!=
(
WCHAR
)
'\\'
)
{
while
((
p
>
buffer
+
2
)
&&
(
*
p
!=
(
WCHAR
)
'\\'
))
p
--
;
...
...
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