PRBool eq = strcmp((const char *)pBytes, aType) == 0; delete[] pBytes; return eq;
if (pBytes) { eq = strcmp((const char *)pBytes, aType) == 0; delete[] pBytes; }
static PRBool typeFromExtEquals(const char *aExt, const char *aType){  if (!aType)    return PR_FALSE;  nsCAutoString fileExtToUse;  if (aExt[0] != '.')    fileExtToUse = '.';  fileExtToUse.Append(aExt);  HKEY hKey;  LONG err = ::RegOpenKeyEx( HKEY_CLASSES_ROOT, fileExtToUse.get(), 0, KEY_QUERY_VALUE, &hKey);  if (err == ERROR_SUCCESS)  {     LPBYTE pBytes = GetValueBytes( hKey, "Content Type");     PRBool eq = strcmp((const char *)pBytes, aType) == 0;     delete[] pBytes;     return eq;  }  return PR_FALSE;}