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
2b6b8cc8
Commit
2b6b8cc8
authored
May 25, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineboot: Compain loudly if we can't find wine.inf.
parent
0920079b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
wineboot.c
programs/wineboot/wineboot.c
+7
-3
No files found.
programs/wineboot/wineboot.c
View file @
2b6b8cc8
...
...
@@ -668,18 +668,22 @@ static void update_wineprefix( int force )
const
char
*
config_dir
=
wine_get_config_dir
();
char
*
inf_path
=
get_wine_inf_path
();
int
fd
;
struct
stat
st
;
if
(
!
inf_path
)
{
WINE_
WARN
(
"cannot find path to wine.inf file
\n
"
);
WINE_
MESSAGE
(
"wine: failed to update %s, wine.inf not found
\n
"
,
config_dir
);
return
;
}
if
(
stat
(
inf_path
,
&
st
)
==
-
1
)
if
(
(
fd
=
open
(
inf_path
,
O_RDONLY
)
)
==
-
1
)
{
WINE_WARN
(
"cannot stat wine.inf file: %s
\n
"
,
strerror
(
errno
)
);
WINE_MESSAGE
(
"wine: failed to update %s with %s: %s
\n
"
,
config_dir
,
inf_path
,
strerror
(
errno
)
);
goto
done
;
}
fstat
(
fd
,
&
st
);
close
(
fd
);
if
(
update_timestamp
(
config_dir
,
st
.
st_mtime
)
||
force
)
{
...
...
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