Huw Davies : gdi32: Pass a NULL user-style array to ExtCreatePen if the user-style count is zero .

Alexandre Julliard julliard at winehq.org
Fri Oct 28 12:48:38 CDT 2011


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Fri Oct 28 14:25:48 2011 +0100

gdi32: Pass a NULL user-style array to ExtCreatePen if the user-style count is zero.

---

 dlls/gdi32/enhmetafile.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdi32/enhmetafile.c b/dlls/gdi32/enhmetafile.c
index 62faa89..ea0ce3b 100644
--- a/dlls/gdi32/enhmetafile.c
+++ b/dlls/gdi32/enhmetafile.c
@@ -945,7 +945,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
 
 	(handletable->objectHandle)[pPen->ihPen] =
 	  ExtCreatePen(pPen->elp.elpPenStyle, pPen->elp.elpWidth, &lb,
-		       pPen->elp.elpNumEntries, pPen->elp.elpStyleEntry);
+                       pPen->elp.elpNumEntries, pPen->elp.elpNumEntries ? pPen->elp.elpStyleEntry : NULL);
 	break;
       }
     case EMR_CREATEBRUSHINDIRECT:




More information about the wine-cvs mailing list