mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 12:23:29 +00:00
[GDI32]
- Patch by Thomas Faber: GetTextExtentPoint32 must not assume null termination of lpString. svn path=/trunk/; revision=51147
This commit is contained in:
@@ -261,7 +261,8 @@ GetTextExtentPoint32A(
|
||||
UNICODE_STRING StringU;
|
||||
BOOL ret;
|
||||
|
||||
RtlInitAnsiString(&StringA, (LPSTR)lpString);
|
||||
StringA.Buffer = (LPSTR)lpString;
|
||||
StringA.Length = cchString;
|
||||
RtlAnsiStringToUnicodeString(&StringU, &StringA, TRUE);
|
||||
|
||||
ret = GetTextExtentPoint32W(hdc, StringU.Buffer, cchString, lpSize);
|
||||
|
||||
Reference in New Issue
Block a user