mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
fixing 289045.
This commit is contained in:
parent
92b60c4eea
commit
c8d0fa0402
@ -640,16 +640,11 @@ MOZCE_SHUNT_API BOOL mozce_GetTextExtentExPointA(HDC inDC, const char * inStr, i
|
||||
mozce_printf("mozce_GetTextExtentExPointA called (%d)\n", inLen);
|
||||
#endif
|
||||
|
||||
char* mutableStr = (char*) inStr;
|
||||
BOOL retval = FALSE;
|
||||
|
||||
if (!mutableStr)
|
||||
return retval;
|
||||
|
||||
mutableStr[inLen] = '\0';
|
||||
|
||||
LPTSTR wStr = a2w_malloc(mutableStr, inLen, NULL);
|
||||
|
||||
// BUG: if inString has any embedded nulls, this function will not produce the desired effect!
|
||||
LPTSTR wStr = a2w_malloc(inStr, inLen, NULL);
|
||||
|
||||
if(NULL != wStr)
|
||||
{
|
||||
retval = GetTextExtentExPointW(inDC, wStr, inLen, inMaxExtent, outFit, outDx, inSize);
|
||||
|
Loading…
Reference in New Issue
Block a user