mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 11:33:43 +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:
parent
6af9026458
commit
b294b7d774
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue