Commit 1dcc70ac authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

gdi32: Pass correct pointer value to HeapFree().

parent a470c0b0
...@@ -2910,13 +2910,13 @@ BOOL WINAPI GetCharABCWidthsFloatA( HDC hdc, UINT first, UINT last, LPABCFLOAT a ...@@ -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 ) 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); unsigned int i, size = sizeof(ABC) * (last - first + 1);
BOOL ret; BOOL ret;
TRACE("%p, %d, %d, %p - partial stub\n", hdc, first, last, abcf); 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; if (!abc) return FALSE;
ret = GetCharABCWidthsW( hdc, first, last, abc ); ret = GetCharABCWidthsW( hdc, first, last, abc );
...@@ -2929,7 +2929,7 @@ BOOL WINAPI GetCharABCWidthsFloatW( HDC hdc, UINT first, UINT last, LPABCFLOAT a ...@@ -2929,7 +2929,7 @@ BOOL WINAPI GetCharABCWidthsFloatW( HDC hdc, UINT first, UINT last, LPABCFLOAT a
abcf->abcfC = abc->abcC; abcf->abcfC = abc->abcC;
} }
} }
HeapFree( GetProcessHeap(), 0, abc ); HeapFree( GetProcessHeap(), 0, abc_base );
return ret; return ret;
} }
......
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