windows: retrieve function pointers before doing anything else
This commit is contained in:
parent
1d64a36caa
commit
cd1298c388
@ -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();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user