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
977b7d39
Commit
977b7d39
authored
Sep 17, 2008
by
Vitaly Lipatov
Committed by
Alexandre Julliard
Sep 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineboot: Do registry update with wineboot --update in any case.
parent
403221c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wineboot.c
programs/wineboot/wineboot.c
+3
-3
No files found.
programs/wineboot/wineboot.c
View file @
977b7d39
...
@@ -115,7 +115,7 @@ static char *get_wine_inf_path(void)
...
@@ -115,7 +115,7 @@ static char *get_wine_inf_path(void)
}
}
/* update the timestamp if different from the reference time */
/* update the timestamp if different from the reference time */
static
BOOL
update_timestamp
(
const
char
*
config_dir
,
unsigned
long
timestamp
,
int
force
)
static
BOOL
update_timestamp
(
const
char
*
config_dir
,
unsigned
long
timestamp
)
{
{
BOOL
ret
=
FALSE
;
BOOL
ret
=
FALSE
;
int
fd
,
count
;
int
fd
,
count
;
...
@@ -132,7 +132,7 @@ static BOOL update_timestamp( const char *config_dir, unsigned long timestamp, i
...
@@ -132,7 +132,7 @@ static BOOL update_timestamp( const char *config_dir, unsigned long timestamp, i
{
{
buffer
[
count
]
=
0
;
buffer
[
count
]
=
0
;
if
(
!
strncmp
(
buffer
,
"disable"
,
sizeof
(
"disable"
)
-
1
))
goto
done
;
if
(
!
strncmp
(
buffer
,
"disable"
,
sizeof
(
"disable"
)
-
1
))
goto
done
;
if
(
!
force
&&
timestamp
==
strtoul
(
buffer
,
NULL
,
10
))
goto
done
;
if
(
timestamp
==
strtoul
(
buffer
,
NULL
,
10
))
goto
done
;
}
}
lseek
(
fd
,
0
,
SEEK_SET
);
lseek
(
fd
,
0
,
SEEK_SET
);
ftruncate
(
fd
,
0
);
ftruncate
(
fd
,
0
);
...
@@ -681,7 +681,7 @@ static void update_wineprefix( int force )
...
@@ -681,7 +681,7 @@ static void update_wineprefix( int force )
goto
done
;
goto
done
;
}
}
if
(
update_timestamp
(
config_dir
,
st
.
st_mtime
,
force
)
)
if
(
update_timestamp
(
config_dir
,
st
.
st_mtime
)
||
force
)
{
{
WCHAR
*
buffer
;
WCHAR
*
buffer
;
DWORD
len
=
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
inf_path
,
-
1
,
NULL
,
0
);
DWORD
len
=
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
inf_path
,
-
1
,
NULL
,
0
);
...
...
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