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
9bfbb486
Commit
9bfbb486
authored
Apr 06, 2020
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Initialize current_time before it's used in init_registry.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fc1cc8ef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
fd.c
server/fd.c
+1
-1
file.h
server/file.h
+1
-0
main.c
server/main.c
+1
-0
No files found.
server/fd.c
View file @
9bfbb486
...
...
@@ -372,7 +372,7 @@ struct timeout_user
static
struct
list
timeout_list
=
LIST_INIT
(
timeout_list
);
/* sorted timeouts list */
timeout_t
current_time
;
static
inline
void
set_current_time
(
void
)
void
set_current_time
(
void
)
{
static
const
timeout_t
ticks_1601_to_1970
=
(
timeout_t
)
86400
*
(
369
*
365
+
89
)
*
TICKS_PER_SEC
;
struct
timeval
now
;
...
...
server/file.h
View file @
9bfbb486
...
...
@@ -134,6 +134,7 @@ extern timeout_t current_time;
typedef
void
(
*
timeout_callback
)(
void
*
private
);
extern
void
set_current_time
(
void
);
extern
struct
timeout_user
*
add_timeout_user
(
timeout_t
when
,
timeout_callback
func
,
void
*
private
);
extern
void
remove_timeout_user
(
struct
timeout_user
*
user
);
extern
const
char
*
get_timeout_str
(
timeout_t
timeout
);
...
...
server/main.c
View file @
9bfbb486
...
...
@@ -141,6 +141,7 @@ int main( int argc, char *argv[] )
open_master_socket
();
if
(
debug_level
)
fprintf
(
stderr
,
"wineserver: starting (pid=%ld)
\n
"
,
(
long
)
getpid
()
);
set_current_time
();
init_signals
();
init_directories
();
init_registry
();
...
...
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