Huw Davies : wineps.drv: Ignore ExtTextOut calls that occur before the job has started.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jun 18 08:05:08 CDT 2007


Module: wine
Branch: master
Commit: 4b8c1c46d2911d1ca1c13306fc51705ebab3f3ed
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4b8c1c46d2911d1ca1c13306fc51705ebab3f3ed

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Jun 18 11:29:51 2007 +0100

wineps.drv: Ignore ExtTextOut calls that occur before the job has started.

---

 dlls/wineps.drv/text.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/wineps.drv/text.c b/dlls/wineps.drv/text.c
index 4422da4..88579a1 100644
--- a/dlls/wineps.drv/text.c
+++ b/dlls/wineps.drv/text.c
@@ -47,6 +47,8 @@ BOOL PSDRV_ExtTextOut( PSDRV_PDEVICE *physDev, INT x, INT y, UINT flags,
     TRACE("(x=%d, y=%d, flags=0x%08x, str=%s, count=%d, lpDx=%p)\n", x, y,
 	  flags, debugstr_wn(str, count), count, lpDx);
 
+    if(physDev->job.hJob == 0) return FALSE;
+
     /* write font if not already written */
     PSDRV_SetFont(physDev);
 




More information about the wine-cvs mailing list