Jesse Allen : msvcrt: Free correct buffer in pf_vsnprintf.
Module: wine Branch: master Commit: fa8656f8417a19f42dc5f3b85535db37228f007a URL: http://source.winehq.org/git/wine.git/?a=commit;h=fa8656f8417a19f42dc5f3b855... Author: Jesse Allen <the3dfxdude(a)gmail.com> Date: Mon Nov 13 20:51:17 2006 -0700 msvcrt: Free correct buffer in pf_vsnprintf. --- dlls/msvcrt/wcs.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msvcrt/wcs.c b/dlls/msvcrt/wcs.c index a7a014d..591f28f 100644 --- a/dlls/msvcrt/wcs.c +++ b/dlls/msvcrt/wcs.c @@ -667,7 +667,7 @@ static int pf_vsnprintf( pf_output *out, 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, r = pf_output_stringA( out, x, -1 ); if( x != number ) - HeapFree( GetProcessHeap(), 0, number ); + HeapFree( GetProcessHeap(), 0, x ); } else continue;
participants (1)
-
Alexandre Julliard