*outBufLen = (unsigned int)dstLength*sizeof(PRUnichar);
extern "C" PRBool nlsUTF8ToUnicode(unsigned char * inBuf, unsigned int inBufBytes,							unsigned char * outBuf, unsigned int maxOutBufLen,							unsigned int * outBufLen){	PRBool ret = PR_FALSE;	PRInt32 dstLength;	nsIUnicodeDecoder *dec = decoderUTF8;	nsresult res;	res = dec->GetMaxLength((const char*)inBuf, inBufBytes, &dstLength);	if (NS_FAILED(res) || (dstLength > maxOutBufLen)) {		goto loser;	}	res = dec->Convert((const char *)inBuf, (PRInt32*)&inBufBytes, (PRUnichar*)outBuf, &dstLength);	if (NS_FAILED(res)) {		goto loser;	}	ret = PR_TRUE;loser:	return ret;}