gdi32: Avoid awkward cast in GetGlyphOutlineA (Coverity).
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
bbfc01ccdc
commit
e3648c7a61
|
@ -2823,6 +2823,7 @@ DWORD WINAPI GetGlyphOutlineA( HDC hdc, UINT uChar, UINT fuFormat,
|
|||
UINT cp;
|
||||
int len;
|
||||
char mbchs[2];
|
||||
WCHAR wChar;
|
||||
|
||||
cp = GdiGetCodePage(hdc);
|
||||
if (IsDBCSLeadByteEx(cp, uChar >> 8)) {
|
||||
|
@ -2833,8 +2834,9 @@ DWORD WINAPI GetGlyphOutlineA( HDC hdc, UINT uChar, UINT fuFormat,
|
|||
len = 1;
|
||||
mbchs[0] = (uChar & 0xff);
|
||||
}
|
||||
uChar = 0;
|
||||
MultiByteToWideChar(cp, 0, mbchs, len, (LPWSTR)&uChar, 1);
|
||||
wChar = 0;
|
||||
MultiByteToWideChar(cp, 0, mbchs, len, &wChar, 1);
|
||||
uChar = wChar;
|
||||
}
|
||||
|
||||
return GetGlyphOutlineW(hdc, uChar, fuFormat, lpgm, cbBuffer, lpBuffer,
|
||||
|
|
Loading…
Reference in New Issue