From fa8656f8417a19f42dc5f3b85535db37228f007a Mon Sep 17 00:00:00 2001 From: Jesse Allen Date: Mon, 13 Nov 2006 20:51:17 -0700 Subject: [PATCH] msvcrt: Free correct buffer in pf_vsnprintf. --- dlls/msvcrt/wcs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msvcrt/wcs.c b/dlls/msvcrt/wcs.c index a7a014d8f3b..591f28f6527 100644 --- a/dlls/msvcrt/wcs.c +++ b/dlls/msvcrt/wcs.c @@ -667,7 +667,7 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, va_list valist ) r = pf_output_format_A( out, x, -1, &flags ); if( x != number ) - HeapFree( GetProcessHeap(), 0, number ); + HeapFree( GetProcessHeap(), 0, x ); } /* deal with integers and floats using libc's printf */ @@ -687,7 +687,7 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, va_list valist ) r = pf_output_stringA( out, x, -1 ); if( x != number ) - HeapFree( GetProcessHeap(), 0, number ); + HeapFree( GetProcessHeap(), 0, x ); } else continue;