Commit fa8656f8 authored by Jesse Allen's avatar Jesse Allen Committed by Alexandre Julliard

msvcrt: Free correct buffer in pf_vsnprintf.

parent f3c6114d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment