Commit 9bfbb486 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

server: Initialize current_time before it's used in init_registry.

parent fc1cc8ef
......@@ -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;
......
......@@ -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 );
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment