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
cfc5d571
Commit
cfc5d571
authored
Mar 17, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Retrieve a short name in GetShortPathNameW if the long name contains
spaces.
parent
22508e57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
path.c
dlls/kernel/path.c
+2
-1
No files found.
dlls/kernel/path.c
View file @
cfc5d571
...
...
@@ -339,10 +339,11 @@ DWORD WINAPI GetShortPathNameW( LPCWSTR longpath, LPWSTR shortpath, DWORD shortl
/* Check, if the current element is a valid dos name */
if
(
tmplen
<=
8
+
1
+
3
+
1
)
{
BOOLEAN
spaces
;
memcpy
(
ustr_buf
,
longpath
+
lp
,
tmplen
*
sizeof
(
WCHAR
));
ustr_buf
[
tmplen
]
=
'\0'
;
ustr
.
Length
=
tmplen
*
sizeof
(
WCHAR
);
if
(
RtlIsNameLegalDOS8Dot3
(
&
ustr
,
NULL
,
NULL
)
)
if
(
RtlIsNameLegalDOS8Dot3
(
&
ustr
,
NULL
,
&
spaces
)
&&
!
spaces
)
{
sp
+=
tmplen
;
lp
+=
tmplen
;
...
...
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