Module: wine Branch: master Commit: d845510170d41b7da901e6d9aaf52a91c76e394f URL: http://source.winehq.org/git/wine.git/?a=commit;h=d845510170d41b7da901e6d9aa...
Author: André Hentschel nerv@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 */