Module: wine Branch: master Commit: 7a02782f48c582c7353d3a716afb4b4717272079 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7a02782f48c582c7353d3a716a...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Mon Jun 8 11:49:21 2015 +0300
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 0291f17..e942880 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)