TRACE fix in font GetTextExtentExPointW
François Gouget
fgouget at codeweavers.com
Fri Sep 21 23:51:50 CDT 2001
The TRACE in GetTextExtentExPointW dumps the string after we have
messed up the string pointer...
Changelog:
François Gouget <fgouget at codeweavers.com>
* objects/font.c
GetTextExtentExPointW: dump the string before modifying the pointer
--
François Gouget
fgouget at codeweavers.com
-------------- next part --------------
Index: objects/font.c
===================================================================
RCS file: /home/wine/wine/objects/font.c,v
retrieving revision 1.52
diff -u -r1.52 font.c
--- objects/font.c 2001/09/19 20:32:07 1.52
+++ objects/font.c 2001/09/22 02:09:43
@@ -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;
More information about the wine-patches
mailing list