From 7a02782f48c582c7353d3a716afb4b4717272079 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Mon, 8 Jun 2015 11:49:21 +0300 Subject: [PATCH] usp10: Remove dead null check that can't fail (Coverity). --- dlls/usp10/shape.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dlls/usp10/shape.c b/dlls/usp10/shape.c index 0291f17154c..e9428808620 100644 --- a/dlls/usp10/shape.c +++ b/dlls/usp10/shape.c @@ -3348,14 +3348,9 @@ rpRangeProperties = &ShapingData[psa->eScript].defaultTextRange; void SHAPE_ApplyOpenTypePositions(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *psa, const WORD* pwGlyphs, INT cGlyphs, int *piAdvance, GOFFSET *pGoffset ) { - const TEXTRANGE_PROPERTIES *rpRangeProperties; + const TEXTRANGE_PROPERTIES *rpRangeProperties = &ShapingData[psa->eScript].defaultGPOSTextRange; int i; - rpRangeProperties = &ShapingData[psa->eScript].defaultGPOSTextRange; - - if (!rpRangeProperties) - return; - load_ot_tables(hdc, psc); if (!psc->GPOS_Table || !psc->otm)