From: Nikolay Sivov Subject: [PATCH 2/4] usp10: Use glyph index consistently in ScriptGetGlyphABCWidth(). Message-Id: <20181213235539.8592-2-nsivov@codeweavers.com> Date: Fri, 14 Dec 2018 02:55:37 +0300 In-Reply-To: <20181213235539.8592-1-nsivov@codeweavers.com> References: <20181213235539.8592-1-nsivov@codeweavers.com> Signed-off-by: Nikolay Sivov --- dlls/usp10/usp10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c index 032d0745b0..c42b57dc5b 100644 --- a/dlls/usp10/usp10.c +++ b/dlls/usp10/usp10.c @@ -3715,7 +3715,7 @@ HRESULT WINAPI ScriptGetGlyphABCWidth(HDC hdc, SCRIPT_CACHE *psc, WORD glyph, AB else { INT width; - if (!GetCharWidth32W(hdc, glyph, glyph, &width)) return S_FALSE; + if (!GetCharWidthI(hdc, glyph, 1, NULL, &width)) return S_FALSE; abc->abcB = width; abc->abcA = abc->abcC = 0; } -- 2.19.2