diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2019-11-10 03:37:38 -0500 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2019-12-01 18:12:36 -0500 |
commit | 5b22e1a5a9966036f087de8f58af449975400e58 (patch) | |
tree | 5d02d5e7e5281535437ae78a08b211105689f4dd /tests/mem-include-scan.pl | |
parent | bc5d22c3dede2f04870c37aec9a50474c4b888ad (diff) |
strerror: Add Curl_winapi_strerror for Win API specific errors
- In all code call Curl_winapi_strerror instead of Curl_strerror when
the error code is known to be from Windows GetLastError.
Curl_strerror prefers CRT error codes (errno) over Windows API error
codes (GetLastError) when the two overlap. When we know the error code
is from GetLastError it is more accurate to prefer the Windows API error
messages.
Reported-by: Richard Alcock
Fixes https://github.com/curl/curl/issues/4550
Closes https://github.com/curl/curl/pull/4581
Diffstat (limited to 'tests/mem-include-scan.pl')
0 files changed, 0 insertions, 0 deletions