[PATCH v2 2/4] usp10: Avoid LPWORD.
Henri Verbeet
hverbeet at codeweavers.com
Wed Mar 22 17:11:38 CDT 2017
And cleanup a style issue along the way.
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
dlls/usp10/opentype.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/usp10/opentype.c b/dlls/usp10/opentype.c
index 0579aed..e3c7a56 100644
--- a/dlls/usp10/opentype.c
+++ b/dlls/usp10/opentype.c
@@ -669,22 +669,22 @@ static int compare_group(const void *a, const void* b)
return 0;
}
-DWORD OpenType_CMAP_GetGlyphIndex(HDC hdc, ScriptCache *psc, DWORD utf32c, LPWORD pgi, DWORD flags)
+DWORD OpenType_CMAP_GetGlyphIndex(HDC hdc, ScriptCache *psc, DWORD utf32c, WORD *glyph_index, DWORD flags)
{
/* BMP: use gdi32 for ease */
if (utf32c < 0x10000)
{
WCHAR ch = utf32c;
- return GetGlyphIndicesW(hdc,&ch, 1, pgi, flags);
+ return GetGlyphIndicesW(hdc, &ch, 1, glyph_index, flags);
}
if (!psc->CMAP_format12_Table)
psc->CMAP_format12_Table = load_CMAP_format12_table(hdc, psc);
if (flags & GGI_MARK_NONEXISTING_GLYPHS)
- *pgi = 0xffff;
+ *glyph_index = 0xffffu;
else
- *pgi = 0;
+ *glyph_index = 0u;
if (psc->CMAP_format12_Table)
{
@@ -699,7 +699,7 @@ DWORD OpenType_CMAP_GetGlyphIndex(HDC hdc, ScriptCache *psc, DWORD utf32c, LPWOR
if (group)
{
DWORD offset = utf32c - GET_BE_DWORD(group->startCharCode);
- *pgi = GET_BE_DWORD(group->startGlyphID) + offset;
+ *glyph_index = GET_BE_DWORD(group->startGlyphID) + offset;
return 0;
}
}
--
2.1.4
More information about the wine-patches
mailing list