Jesse Allen : msvcrt: Free correct buffer in pf_vsnprintf.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Nov 14 05:14:19 CST 2006
Module: wine
Branch: master
Commit: fa8656f8417a19f42dc5f3b85535db37228f007a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fa8656f8417a19f42dc5f3b85535db37228f007a
Author: Jesse Allen <the3dfxdude at 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;
More information about the wine-cvs
mailing list