mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#10198 Win32 mdb_strerror - stop passing "ignored" parameter
The M$ docs say the parameter is ignored, but it actually isn't, and will cause a SEGV if the pointed memory isn't an init'd va_list.
This commit is contained in:
parent
7077d5e601
commit
d3ae7c36e5
1 changed files with 1 additions and 1 deletions
|
|
@ -1555,7 +1555,7 @@ mdb_strerror(int err)
|
||||||
buf[0] = 0;
|
buf[0] = 0;
|
||||||
FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM |
|
FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM |
|
||||||
FORMAT_MESSAGE_IGNORE_INSERTS,
|
FORMAT_MESSAGE_IGNORE_INSERTS,
|
||||||
NULL, err, 0, ptr, MSGSIZE, (va_list *)buf+MSGSIZE);
|
NULL, err, 0, ptr, MSGSIZE, NULL);
|
||||||
return ptr;
|
return ptr;
|
||||||
#else
|
#else
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue