Open AtomCrafty opened 4 months ago
The current implementation of the GetTextExtentExPointA hook simply converts to utf16 and forwards it to GetTextExtentExPointW. This is incorrect if used with MBCSs since it assumes each character's index to equal its byte offset.
GetTextExtentExPointA
GetTextExtentExPointW
The current implementation of the
GetTextExtentExPointA
hook simply converts to utf16 and forwards it toGetTextExtentExPointW
. This is incorrect if used with MBCSs since it assumes each character's index to equal its byte offset.