]> git.sur5r.net Git - openldap/commitdiff
fix flag on formatMessage to not allocate buffer
authorGary Williams <gwilliams@openldap.org>
Fri, 18 Jun 1999 21:27:43 +0000 (21:27 +0000)
committerGary Williams <gwilliams@openldap.org>
Fri, 18 Jun 1999 21:27:43 +0000 (21:27 +0000)
libraries/liblutil/nt_err.c

index de279fcd451b632def01deb281c325f7c50e99a3..2416f997e5746f8f7c26ffeb32f46d4ff143ff1d 100644 (file)
@@ -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 );