char str[CHAR_BUFFER_SIZE]; char* pstr = str; int len = CHAR_BUFFER_SIZE; Convert(aString, aLength, &pstr, &len); if (len) { ::ExtTextOutA(aDC, aX, aY, 0, NULL, pstr, len, NULL); if (pstr != str) { delete[] pstr; }
nsAutoCharBuffer buffer; Convert(aString, aLength, buffer, &aLength); if (aLength) { NS_ExtTextOutA(aDC, this, aX, aY, 0, NULL, buffer.get(), aLength, NULL);
nsFontSubset::DrawString(HDC aDC, PRInt32 aX, PRInt32 aY,  const PRUnichar* aString, PRUint32 aLength){  char str[CHAR_BUFFER_SIZE];  char* pstr = str;  int len = CHAR_BUFFER_SIZE;  Convert(aString, aLength, &pstr, &len);  if (len) {    ::ExtTextOutA(aDC, aX, aY, 0, NULL, pstr, len, NULL);    if (pstr != str) {      delete[] pstr;    }  }}