Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
windows: retrieve function pointers before doing anything else
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Jun 2, 2012
1 parent 1d64a36 commit cd1298c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/win/core.c
Expand Up @@ -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();

Expand Down

0 comments on commit cd1298c

Please sign in to comment.