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

This commit is contained in:
André Hentschel 2012-01-03 03:33:23 +01:00 committed by Alexandre Julliard
parent 4b524f91e2
commit d845510170
1 changed files with 1 additions and 1 deletions

View File

@ -2737,7 +2737,7 @@ HRESULT WINAPI ScriptShapeOpenType( HDC hdc, SCRIPT_CACHE *psc,
((ScriptCache *)*psc)->userLang = tagLangSys; ((ScriptCache *)*psc)->userLang = tagLangSys;
/* set fNoGlyphIndex non truetype/opentype fonts */ /* set fNoGlyphIndex non truetype/opentype fonts */
if (!psa->fNoGlyphIndex && !((ScriptCache *)*psc)->sfnt) if (psa && !psa->fNoGlyphIndex && !((ScriptCache *)*psc)->sfnt)
psa->fNoGlyphIndex = TRUE; psa->fNoGlyphIndex = TRUE;
/* Initialize a SCRIPT_VISATTR and LogClust for each char in this run */ /* Initialize a SCRIPT_VISATTR and LogClust for each char in this run */