mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:02:59 +00:00
[GDI32] Fix ExtTextOutA with ETO_GLYPH_INDEX
CORE-18365
This commit is contained in:
parent
75125228be
commit
d84b76a69e
1 changed files with 8 additions and 1 deletions
|
@ -465,9 +465,16 @@ ExtTextOutA(
|
||||||
UNICODE_STRING StringU;
|
UNICODE_STRING StringU;
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
|
|
||||||
RtlInitAnsiString(&StringA, (LPSTR)lpString);
|
if (fuOptions & ETO_GLYPH_INDEX)
|
||||||
|
return ExtTextOutW(hdc, x, y, fuOptions, lprc, (LPCWSTR)lpString, cch, lpDx);
|
||||||
|
|
||||||
|
StringA.Buffer = (PCHAR)lpString;
|
||||||
|
StringA.Length = StringA.MaximumLength = cch;
|
||||||
RtlAnsiStringToUnicodeString(&StringU, &StringA, TRUE);
|
RtlAnsiStringToUnicodeString(&StringU, &StringA, TRUE);
|
||||||
|
|
||||||
|
if (StringU.Length != StringA.Length * sizeof(WCHAR))
|
||||||
|
DPRINT1("ERROR: Should convert lpDx properly!\n");
|
||||||
|
|
||||||
ret = ExtTextOutW(hdc, x, y, fuOptions, lprc, StringU.Buffer, cch, lpDx);
|
ret = ExtTextOutW(hdc, x, y, fuOptions, lprc, StringU.Buffer, cch, lpDx);
|
||||||
|
|
||||||
RtlFreeUnicodeString(&StringU);
|
RtlFreeUnicodeString(&StringU);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue