Add missing HeapFree.

This commit is contained in:
Huw D M Davies 2002-08-09 00:55:33 +00:00 committed by Alexandre Julliard
parent 8c9bdcc9e1
commit b4bdd818e0
1 changed files with 4 additions and 3 deletions
objects

View File

@ -188,7 +188,7 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags,
* and the font idetifies iteself as requiring language processing.
*/
GCP_RESULTSW gcp;
gcp.lStructSize=sizeof(gcp);
gcp.lpOutString=HeapAlloc(GetProcessHeap(), 0, count*sizeof(WCHAR));
gcp.lpOrder=NULL;
@ -198,11 +198,12 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags,
gcp.lpGlyphs=NULL;
gcp.nGlyphs=0;
gcp.nMaxFit=0;
GetCharacterPlacementW(hdc, str, count, 0, &gcp, GCP_REORDER );
ret = dc->funcs->pExtTextOut(dc->physDev,x,y,flags|ETO_IGNORELANGUAGE,
lprect,gcp.lpOutString,count,lpDx);
HeapFree(GetProcessHeap(), 0, gcp.lpOutString);
} else
ret = dc->funcs->pExtTextOut(dc->physDev,x,y,flags,lprect,str,count,lpDx);
}