mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-19 08:51:22 +03:00
Use the error code given to buferror on Windows
a14bce85made buferror not take an error code, and make the Windows code path for buferror use GetLastError, while the alternative code paths used errno. Then2a83ed02made buferror take an error code again, and while it changed the non-Windows code paths to use that error code, the Windows code path was not changed accordingly.
This commit is contained in:
parent
d69964bd2d
commit
f69e2f6fda
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ buferror(int err, char *buf, size_t buflen)
|
|||
{
|
||||
|
||||
#ifdef _WIN32
|
||||
FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0,
|
||||
FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, NULL, err, 0,
|
||||
(LPSTR)buf, buflen, NULL);
|
||||
return (0);
|
||||
#elif defined(__GLIBC__) && defined(_GNU_SOURCE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue