usp10: Check for pointer before using it (Coverity)
André Hentschel
nerv at dawncrow.de
Mon Jan 2 20:33:23 CST 2012
psa is checked everywhere else in that function
CID: 5307
---
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 5416254..7758800 100644
--- a/dlls/usp10/usp10.c
+++ b/dlls/usp10/usp10.c
@@ -2726,7 +2726,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 */
--
Best Regards, André Hentschel
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Nachrichtenteil als Anhang
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20120103/471cd551/attachment.ksh>
More information about the wine-patches
mailing list