Module: wine Branch: master Commit: 1dcc70ac17f7f82ccee3b3187a89461955426174 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1dcc70ac17f7f82ccee3b3187a...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Thu Jun 26 23:00:36 2008 +0100
gdi32: Pass correct pointer value to HeapFree().
---
dlls/gdi32/font.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/gdi32/font.c b/dlls/gdi32/font.c index 20a009a..91e41e7 100644 --- a/dlls/gdi32/font.c +++ b/dlls/gdi32/font.c @@ -2910,13 +2910,13 @@ BOOL WINAPI GetCharABCWidthsFloatA( HDC hdc, UINT first, UINT last, LPABCFLOAT a */ BOOL WINAPI GetCharABCWidthsFloatW( HDC hdc, UINT first, UINT last, LPABCFLOAT abcf ) { - ABC *abc; + ABC *abc, *abc_base; unsigned int i, size = sizeof(ABC) * (last - first + 1); BOOL ret;
TRACE("%p, %d, %d, %p - partial stub\n", hdc, first, last, abcf);
- abc = HeapAlloc( GetProcessHeap(), 0, size ); + abc = abc_base = HeapAlloc( GetProcessHeap(), 0, size ); if (!abc) return FALSE;
ret = GetCharABCWidthsW( hdc, first, last, abc ); @@ -2929,7 +2929,7 @@ BOOL WINAPI GetCharABCWidthsFloatW( HDC hdc, UINT first, UINT last, LPABCFLOAT a abcf->abcfC = abc->abcC; } } - HeapFree( GetProcessHeap(), 0, abc ); + HeapFree( GetProcessHeap(), 0, abc_base ); return ret; }