From 7a7f3018fa0d0d58c2699ca86824735982502376 Mon Sep 17 00:00:00 2001 From: Gary Williams Date: Fri, 18 Jun 1999 21:27:43 +0000 Subject: [PATCH] fix flag on formatMessage to not allocate buffer --- libraries/liblutil/nt_err.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );