mirror of
https://github.com/reactos/reactos.git
synced 2025-07-29 10:42:17 +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;
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
RtlFreeUnicodeString(&StringU);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue