aboutsummaryrefslogtreecommitdiffstats
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index bb7471fbaf..9303a17607 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -811,7 +811,6 @@ StartSockets(void)
InitializeCriticalSection(&select_mutex);
InitializeCriticalSection(&socklist_mutex);
InitializeCriticalSection(&conlist_mutex);
- InitializeCriticalSection(&uenvarea_mutex);
atexit(exit_handler);
}
@@ -896,6 +895,7 @@ rb_w32_sysinit(int *argc, char ***argv)
#endif
SetErrorMode(SEM_FAILCRITICALERRORS|SEM_NOGPFAULTERRORBOX);
+ InitializeCriticalSection(&uenvarea_mutex);
get_version();
//