b=136819 Returned value from getPSMContentType is compared to wrong enum

Patch from t8m@centrum.cz
r=kaie sr=alecf
This commit is contained in:
kaie%netscape.com 2002-08-06 13:21:32 +00:00
Родитель ef2a7ad3c1
Коммит 41d86022a1
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1896,7 +1896,7 @@ PSMContentListener::CanHandleContent(const char * aContentType,
{
PRUint32 type;
type = getPSMContentType(aContentType);
if (type == nsIX509Cert::UNKNOWN_CERT) {
if (type == PSMContentDownloader::UNKNOWN_TYPE) {
*aCanHandleContent = PR_FALSE;
} else {
*aCanHandleContent = PR_TRUE;
@ -1915,7 +1915,7 @@ PSMContentListener::DoContent(const char * aContentType,
PRUint32 type;
type = getPSMContentType(aContentType);
PR_LOG(gPIPNSSLog, PR_LOG_DEBUG, ("PSMContentListener::DoContent\n"));
if (type != nsIX509Cert::UNKNOWN_CERT) {
if (type != PSMContentDownloader::UNKNOWN_TYPE) {
downLoader = new PSMContentDownloader(type);
if (downLoader) {
downLoader->QueryInterface(NS_GET_IID(nsIStreamListener),