PRUnichar str[CHAR_BUFFER_SIZE]; PRUnichar* pstr = SubstituteChars(mDisplayUnicode, aString, aLength, str, CHAR_BUFFER_SIZE, &aLength); if (!pstr || !aLength) return;
if (mUnderlinedOrStrikeOut) {      if (NOT_SETUP == gIsWIN95) { OSVERSIONINFO os; os.dwOSVersionInfoSize = sizeof(os); ::GetVersionEx(&os);  if (VER_PLATFORM_WIN32_NT == os.dwPlatformId) { gIsWIN95 = PR_FALSE; } else { gIsWIN95 = PR_TRUE; } }
nsFontWinSubstitute::DrawString(HDC aDC, PRInt32 aX, PRInt32 aY,  const PRUnichar* aString, PRUint32 aLength){  PRUnichar str[CHAR_BUFFER_SIZE];  PRUnichar* pstr = SubstituteChars(mDisplayUnicode,                           aString, aLength, str, CHAR_BUFFER_SIZE, &aLength);  if (!pstr || !aLength) return;  ::ExtTextOutW(aDC, aX, aY, 0, NULL, pstr, aLength, NULL);  if (pstr != str) {    delete[] pstr;  }}