GetTextExtentExPointW: dump the string before modifying the pointer.

This commit is contained in:
Francois Gouget 2001-09-24 01:12:08 +00:00 committed by Alexandre Julliard
parent ce4e0a6158
commit 551586e91b
1 changed files with 3 additions and 2 deletions

View File

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