libuv/src/win
Bartosz Sosnowski 165c63b96c
win: add uv__once_init() calls
Some functions, such as uv_fs_scandir() can be called with
a NULL loop argument. In this case, it's possible that the
Windows API hasn't been initialized, leading to a crash.
This commit adds additional uv__once_init() calls to mitigate
this situation.

Fixes: https://github.com/libuv/libuv/issues/1488
PR-URL: https://github.com/libuv/libuv/pull/1512
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
2017-09-02 15:56:10 -04:00
..
async.c unix,windows: refactor request init logic 2017-03-21 16:14:09 +01:00
atomicops-inl.h win: remove __declspec(inline) from atomic op 2017-05-01 14:10:13 -04:00
core.c build: add -Wstrict-prototypes 2017-05-02 23:00:33 +02:00
detect-wakeup.c build: add -Wstrict-prototypes 2017-05-02 23:00:33 +02:00
dl.c win: include filename in dlopen error message 2017-07-13 23:06:11 +02:00
error.c win: map ERROR_ELEVATION_REQUIRED to UV_EACCES 2016-12-16 14:50:32 -05:00
fs-event.c fsevent: support for files without short name 2017-03-26 20:43:51 +02:00
fs.c win: add uv__once_init() calls 2017-09-02 15:56:10 -04:00
getaddrinfo.c unix,windows: refactor request init logic 2017-03-21 16:14:09 +01:00
getnameinfo.c unix,windows: refactor request init logic 2017-03-21 16:14:09 +01:00
handle-inl.h
handle.c win: make uv__get_osfhandle() public 2017-05-30 11:53:31 -04:00
internal.h build: add -Wstrict-prototypes 2017-05-02 23:00:33 +02:00
loop-watcher.c windows: further simplify the code for timers 2014-09-10 09:52:00 +02:00
pipe.c win: add uv__once_init() calls 2017-09-02 15:56:10 -04:00
poll.c build: add -Wstrict-prototypes 2017-05-02 23:00:33 +02:00
process-stdio.c win: add missing break statement 2016-11-03 19:44:50 -04:00
process.c win, process: support semicolons in PATH variable 2017-07-27 12:34:31 +02:00
req-inl.h unix,windows: refactor request init logic 2017-03-21 16:14:09 +01:00
req.c
signal.c build: add -Wstrict-prototypes 2017-05-02 23:00:33 +02:00
snprintf.c win: fix compilation with VS < 2012 2015-10-01 00:41:41 +02:00
stream-inl.h unix,windows: refactor request init logic 2017-03-21 16:14:09 +01:00
stream.c unix,windows: refactor request init logic 2017-03-21 16:14:09 +01:00
tcp.c win: allow bound/connected socket in uv_tcp_open() 2017-08-08 17:19:20 +02:00
thread.c win: don't fetch function pointers to SRWLock APIs 2015-09-22 11:18:23 -04:00
timer.c win: wait for full timeout duration 2015-12-16 12:08:46 +01:00
tty.c win: add uv__once_init() calls 2017-09-02 15:56:10 -04:00
udp.c win,udp: return UV_EINVAL instead of aborting 2017-07-01 17:21:26 +02:00
util.c unix,win: add uv_os_gethostname() 2017-05-18 10:27:47 -04:00
winapi.c build: add -Wstrict-prototypes 2017-05-02 23:00:33 +02:00
winapi.h fs, win: add support for user symlinks 2017-08-18 14:21:58 +02:00
winsock.c build: add -Wstrict-prototypes 2017-05-02 23:00:33 +02:00
winsock.h win: add missing IP_ADAPTER_UNICAST_ADDRESS_LH definition for MinGW 2014-11-06 19:20:32 -05:00