GetTextExtentExPointW: dump the string before modifying the pointer.
diff --git a/objects/font.c b/objects/font.c
index 1174773..7a44b34 100644
--- a/objects/font.c
+++ b/objects/font.c
@@ -1154,6 +1154,8 @@
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 @@
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;