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>
This commit is contained in:
parent
fc1cc8ef78
commit
9bfbb48662
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue