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
1bb69a0c
Commit
1bb69a0c
authored
Apr 02, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make GetFullPathName fail if input path name is empty.
parent
0ca9bba6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
dos_fs.c
files/dos_fs.c
+6
-5
No files found.
files/dos_fs.c
View file @
1bb69a0c
...
...
@@ -1236,14 +1236,15 @@ static DWORD DOSFS_DoGetFullPathName( LPCSTR name, DWORD len, LPSTR result,
char
driveletter
=
0
;
int
namelen
,
drive
=
0
;
if
((
strlen
(
name
)
>
1
)
&&
(
name
[
1
]
==
':'
))
/* drive letter given */
if
(
!
name
[
0
])
return
0
;
if
(
name
[
1
]
==
':'
)
/*drive letter given */
{
driveletter
=
name
[
0
];
}
if
((
strlen
(
name
)
>
2
)
&&
(
name
[
1
]
==
':'
)
&&
((
name
[
2
]
==
'\\'
)
||
(
name
[
2
]
==
'/'
)))
/* absolute path given */
if
((
name
[
1
]
==
':'
)
&&
((
name
[
2
]
==
'\\'
)
||
(
name
[
2
]
==
'/'
)))
/*absolute path given */
{
lstrcpynA
(
full_name
.
short_name
,
name
,
MAX_PATHNAME_LEN
);
drive
=
(
int
)
FILE_toupper
(
name
[
0
])
-
'A'
;
...
...
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