This repository has been archived by the owner on Oct 15, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deps: fix libuv 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. Upstream-PR: libuv/libuv#1811 PR-URL: #517 Reviewed-By: Seth Brenith <[email protected]>
- Loading branch information