Commit 551586e9 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

GetTextExtentExPointW: dump the string before modifying the pointer.

parent ce4e0a61
......@@ -1154,6 +1154,8 @@ BOOL WINAPI GetTextExtentExPointW( HDC hdc, LPCWSTR str, INT count,
SIZE tSize;
BOOL ret = FALSE;
TRACE("(%08x, %s, %d)\n",hdc,debugstr_wn(str,count),maxExt);
size->cx = size->cy = nFit = extent = 0;
for(index = 0; index < count; index++)
{
......@@ -1176,8 +1178,7 @@ BOOL WINAPI GetTextExtentExPointW( HDC hdc, LPCWSTR str, INT count,
if(lpnFit) *lpnFit = nFit;
ret = TRUE;
TRACE("(%08x %s %d) returning %d %ld x %ld\n",
hdc,debugstr_wn(str,count),maxExt,nFit, size->cx,size->cy);
TRACE("returning %d %ld x %ld\n",nFit,size->cx,size->cy);
done:
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