mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-22 23:02:55 -05:00
fix flag on formatMessage to not allocate buffer
This commit is contained in:
parent
19d346ba71
commit
7a7f3018fa
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ char *GetErrorString( int err )
|
|||
static char msgBuf[1024];
|
||||
|
||||
FormatMessage(
|
||||
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
|
||||
FORMAT_MESSAGE_FROM_SYSTEM,
|
||||
NULL,
|
||||
err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
|
||||
msgBuf, 1024, NULL );
|
||||
|
|
|
|||
Loading…
Reference in a new issue