Nikolay Sivov : usp10: Remove dead null check that can't fail (Coverity).
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jun 8 07:49:56 CDT 2015
Module: wine
Branch: master
Commit: 7a02782f48c582c7353d3a716afb4b4717272079
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7a02782f48c582c7353d3a716afb4b4717272079
Author: Nikolay Sivov <nsivov at 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)
More information about the wine-cvs
mailing list