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
a8322d0b
Commit
a8322d0b
authored
Jan 14, 2002
by
Uwe Bonnes
Committed by
Alexandre Julliard
Jan 14, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_stat: Better test for drive letter.
parent
aae77c6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
file.c
dlls/msvcrt/file.c
+7
-3
No files found.
dlls/msvcrt/file.c
View file @
a8322d0b
...
...
@@ -957,9 +957,13 @@ int _stat(const char* path, struct _stat * buf)
memset
(
buf
,
0
,
sizeof
(
struct
_stat
));
/* FIXME: rdev isnt drive num,despite what the docs say-what is it? */
if
(
isalpha
(
*
path
))
buf
->
st_dev
=
buf
->
st_rdev
=
toupper
(
*
path
-
'A'
);
/* drive num */
/* FIXME: rdev isnt drive num,despite what the docs say-what is it?
Bon 011120: This fixme seems incorrect
Also a letter as first char isn't enough to be classify
as drive letter
*/
if
(
isalpha
(
*
path
)
&&
(
*
(
path
+
1
)
==
':'
))
buf
->
st_dev
=
buf
->
st_rdev
=
toupper
(
*
path
)
-
'A'
;
/* drive num */
else
buf
->
st_dev
=
buf
->
st_rdev
=
_getdrive
()
-
1
;
...
...
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