windows: retrieve function pointers before doing anything else

This commit is contained in:
Bert Belder 2012-06-02 20:20:51 +02:00
parent 1d64a36caa
commit cd1298c388

View File

@ -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();