msvcrt: Free correct buffer in pf_vsnprintf.

This commit is contained in:
Jesse Allen 2006-11-13 20:51:17 -07:00 committed by Alexandre Julliard
parent f3c6114d75
commit fa8656f841
1 changed files with 2 additions and 2 deletions

View File

@ -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 ); r = pf_output_format_A( out, x, -1, &flags );
if( x != number ) if( x != number )
HeapFree( GetProcessHeap(), 0, number ); HeapFree( GetProcessHeap(), 0, x );
} }
/* deal with integers and floats using libc's printf */ /* 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 ); r = pf_output_stringA( out, x, -1 );
if( x != number ) if( x != number )
HeapFree( GetProcessHeap(), 0, number ); HeapFree( GetProcessHeap(), 0, x );
} }
else else
continue; continue;