From: Gary Williams Date: Fri, 18 Jun 1999 21:27:43 +0000 (+0000) Subject: fix flag on formatMessage to not allocate buffer X-Git-Tag: OPENLDAP_REL_ENG_2_BP~270 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7a7f3018fa0d0d58c2699ca86824735982502376;p=openldap fix flag on formatMessage to not allocate buffer --- diff --git a/libraries/liblutil/nt_err.c b/libraries/liblutil/nt_err.c index de279fcd45..2416f997e5 100644 --- a/libraries/liblutil/nt_err.c +++ b/libraries/liblutil/nt_err.c @@ -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 );