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
03482126
Commit
03482126
authored
Dec 14, 2000
by
Lawson Whitney
Committed by
Alexandre Julliard
Dec 14, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add strerror() to the "Could not stat" and "Invalid path" startup
error messages.
parent
f45f66be
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
directory.c
files/directory.c
+4
-3
drive.c
files/drive.c
+2
-1
No files found.
files/directory.c
View file @
03482126
...
...
@@ -48,13 +48,14 @@ static int DIR_GetPath( const char *keyname, const char *defval,
{
char
path
[
MAX_PATHNAME_LEN
];
BY_HANDLE_FILE_INFORMATION
info
;
const
char
*
mess
=
"does not exist"
;
PROFILE_GetWineIniString
(
"wine"
,
keyname
,
defval
,
path
,
sizeof
(
path
)
);
if
(
!
DOSFS_GetFullName
(
path
,
TRUE
,
full_name
)
||
!
FILE_Stat
(
full_name
->
long_name
,
&
info
)
||
!
(
info
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
))
(
!
FILE_Stat
(
full_name
->
long_name
,
&
info
)
&&
(
mess
=
strerror
(
errno
)))
||
(
!
(
info
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
&&
(
mess
=
"not a directory"
)
))
{
MESSAGE
(
"Invalid path '%s' for %s directory
\n
"
,
path
,
keyname
);
MESSAGE
(
"Invalid path '%s' for %s directory
: %s
\n
"
,
path
,
keyname
,
mess
);
return
0
;
}
return
1
;
...
...
files/drive.c
View file @
03482126
...
...
@@ -168,7 +168,8 @@ int DRIVE_Init(void)
if
(
stat
(
path
,
&
drive_stat_buffer
))
{
MESSAGE
(
"Could not stat %s, ignoring drive %c:
\n
"
,
path
,
'A'
+
i
);
MESSAGE
(
"Could not stat %s, ignoring drive %c: %s
\n
"
,
path
,
'A'
+
i
,
strerror
(
errno
));
continue
;
}
if
(
!
S_ISDIR
(
drive_stat_buffer
.
st_mode
))
...
...
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