libuv/src/win
Kyle Farnung 0aa6de6deb
win: fix registry API error handling
The Reg* APIs on Windows don't use GetLastError() to report
failures. The errors are returned directly from the call.

For systems which don't have one of the values GetLastError() can
end up returning 0 to the caller, indicating success. The caller
then assumes that the data is valid and can attempt to execute on
garbage data. This change fixes the flow to correctly return the
error to the caller.

PR-URL: https://github.com/libuv/libuv/pull/1811
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2018-04-21 21:04:37 -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 req: revisions to uv_req_t handling 2018-02-25 18:49:37 +01:00
detect-wakeup.c build: add -Wstrict-prototypes 2017-05-02 23:00:33 +02:00
dl.c win: fix non-English dlopen error message 2017-10-19 15:31:39 +02:00
error.c Revert "win: use RemoveDirectoryW() instead of _wmrmdir()" 2018-01-19 17:52:13 +01:00
fs-event.c win: use long directory name for handle->dirw 2018-03-19 10:20:56 +01:00
fs.c Revert "win, fs: use FILE_WRITE_ATTRIBUTES when opening files" 2018-04-18 09:01:51 -04:00
getaddrinfo.c win: fix undeclared NDIS_IF_MAX_STRING_SIZE 2017-11-10 11:07:35 -05:00
getnameinfo.c unix,windows: refactor request init logic 2017-03-21 16:14:09 +01:00
handle-inl.h style: remove trailing whitespace 2014-06-24 20:18:10 +04:00
handle.c win: make uv__get_osfhandle() public 2017-05-30 11:53:31 -04:00
internal.h win,tty: update several TODO comments 2018-03-05 09:04:47 -05:00
loop-watcher.c windows: further simplify the code for timers 2014-09-10 09:52:00 +02:00
pipe.c req: revisions to uv_req_t handling 2018-02-25 18:49:37 +01: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: CREATE_NO_WINDOW when stdio is not inherited 2018-02-21 10:01:07 +01:00
req-inl.h unix,windows: refactor request init logic 2017-03-21 16:14:09 +01:00
req.c
signal.c windows: fix compilation warnings 2017-09-29 09:06:35 -04:00
snprintf.c win: fix compilation with VS < 2012 2015-10-01 00:41:41 +02:00
stream-inl.h req: revisions to uv_req_t handling 2018-02-25 18:49:37 +01:00
stream.c unix,windows: refactor request init logic 2017-03-21 16:14:09 +01:00
tcp.c win,tcp: handle canceled connect with ECANCELED 2018-04-02 11:00:55 -04:00
thread.c win: issue memory barrier in uv_thread_join() 2017-11-20 20:59:33 +01:00
timer.c windows: fix compilation warnings 2017-09-29 09:06:35 -04:00
tty.c win,tty: update several TODO comments 2018-03-05 09:04:47 -05:00
udp.c win: map 0.0.0.0 and :: addresses to localhost 2017-12-28 10:42:11 +01:00
util.c win: fix registry API error handling 2018-04-21 21:04:37 -04:00
winapi.c tty, win: get SetWinEventHook pointer at startup 2017-11-03 12:18:52 +01:00
winapi.h tty, win: get SetWinEventHook pointer at startup 2017-11-03 12:18:52 +01:00
winsock.c win,build: correct C2059 errors 2018-02-14 12:25:08 +01:00
winsock.h win: map 0.0.0.0 and :: addresses to localhost 2017-12-28 10:42:11 +01:00