=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: usp10: Check for pointer before using it (Coverity).

Alexandre Julliard julliard at winehq.org
Wed Jan 4 13:53:00 CST 2012


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Tue Jan  3 03:33:23 2012 +0100

usp10: Check for pointer before using it (Coverity).

---

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

diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c
index 9ddff1b..1f6ec53 100644
--- a/dlls/usp10/usp10.c
+++ b/dlls/usp10/usp10.c
@@ -2737,7 +2737,7 @@ HRESULT WINAPI ScriptShapeOpenType( HDC hdc, SCRIPT_CACHE *psc,
     ((ScriptCache *)*psc)->userLang = tagLangSys;
 
     /* set fNoGlyphIndex non truetype/opentype fonts */
-    if (!psa->fNoGlyphIndex && !((ScriptCache *)*psc)->sfnt)
+    if (psa && !psa->fNoGlyphIndex && !((ScriptCache *)*psc)->sfnt)
         psa->fNoGlyphIndex = TRUE;
 
     /* Initialize a SCRIPT_VISATTR and LogClust for each char in this run */




More information about the wine-cvs mailing list