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
594a0dcc
Commit
594a0dcc
authored
Jun 15, 2000
by
Uwe Bonnes
Committed by
Alexandre Julliard
Jun 15, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GetFullPathName: get "drive" value too for absolute paths.
parent
f93dcc25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
dos_fs.c
files/dos_fs.c
+7
-1
No files found.
files/dos_fs.c
View file @
594a0dcc
...
...
@@ -1109,9 +1109,10 @@ static DWORD DOSFS_DoGetFullPathName( LPCSTR name, DWORD len, LPSTR result,
}
if
((
strlen
(
name
)
>
2
)
&&
(
name
[
1
]
==
':'
)
&&
((
name
[
2
]
==
'\\'
)
||
(
name
[
2
]
==
'/'
)))
/*absolue path given */
/*absolu
t
e path given */
{
lstrcpynA
(
full_name
.
short_name
,
name
,
MAX_PATHNAME_LEN
);
drive
=
(
int
)
toupper
(
name
[
0
])
-
'A'
;
}
else
{
...
...
@@ -1127,6 +1128,11 @@ static DWORD DOSFS_DoGetFullPathName( LPCSTR name, DWORD len, LPSTR result,
/* find path that drive letter substitutes*/
drive
=
(
int
)
toupper
(
full_name
.
short_name
[
0
])
-
0x41
;
root
=
DRIVE_GetRoot
(
drive
);
if
(
!
root
)
{
FIXME
(
"internal: error getting DOS Drive Root
\n
"
);
return
0
;
}
p
=
full_name
.
long_name
+
strlen
(
root
);
/* append long name (= unix name) to drive */
lstrcpynA
(
full_name
.
short_name
+
2
,
p
,
MAX_PATHNAME_LEN
-
3
);
...
...
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