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
61f572a6
Commit
61f572a6
authored
Apr 06, 2000
by
Uwe Bonnes
Committed by
Alexandre Julliard
Apr 06, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GetShortPathName: always erase characters at the end of the new
string, and return only single backslashes.
parent
fbace6ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
dos_fs.c
files/dos_fs.c
+7
-2
No files found.
files/dos_fs.c
View file @
61f572a6
...
...
@@ -939,8 +939,12 @@ DWORD WINAPI GetShortPathNameA( LPCSTR longpath, LPSTR shortpath,
/* check for path delimiters and reproduce them */
if
(
longpath
[
lp
]
==
'\\'
||
longpath
[
lp
]
==
'/'
)
{
tmpshortpath
[
sp
]
=
longpath
[
lp
];
sp
++
;
if
(
!
sp
||
tmpshortpath
[
sp
-
1
]
!=
'\\'
)
{
/* strip double "\\" */
tmpshortpath
[
sp
]
=
'\\'
;
sp
++
;
}
lp
++
;
continue
;
}
...
...
@@ -967,6 +971,7 @@ DWORD WINAPI GetShortPathNameA( LPCSTR longpath, LPSTR shortpath,
SetLastError
(
ERROR_FILE_NOT_FOUND
);
return
0
;
}
tmpshortpath
[
sp
]
=
0
;
lstrcpynA
(
shortpath
,
tmpshortpath
,
shortlen
);
TRACE
(
"returning %s
\n
"
,
debugstr_a
(
shortpath
)
);
...
...
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