From cd1298c38807d9a2cd546612fed2fa58da708220 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Sat, 2 Jun 2012 20:20:51 +0200 Subject: [PATCH] windows: retrieve function pointers before doing anything else --- src/win/core.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/win/core.c b/src/win/core.c index 4af238c2..4dfb0794 100644 --- a/src/win/core.c +++ b/src/win/core.c @@ -43,12 +43,13 @@ static void uv_init(void) { SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX); + /* Fetch winapi function pointers. This must be done first because other */ + /* intialization code might need these function pointers to be loaded. */ + uv_winapi_init(); + /* Initialize winsock */ uv_winsock_init(); - /* Fetch winapi function pointers */ - uv_winapi_init(); - /* Initialize FS */ uv_fs_init();