зеркало из https://github.com/mozilla/pjs.git
fix regression of bug 124741. r=law, sr=alecf, a=asa
This commit is contained in:
Родитель
2900587f75
Коммит
ec123f674a
|
@ -98,7 +98,7 @@ nsMIMEInfoImpl::ExtensionExists(const char *aExtension, PRBool *_retval) {
|
||||||
NS_ASSERTION(aExtension, "no extension");
|
NS_ASSERTION(aExtension, "no extension");
|
||||||
PRBool found = PR_FALSE;
|
PRBool found = PR_FALSE;
|
||||||
PRUint32 extCount = mExtensions.Count();
|
PRUint32 extCount = mExtensions.Count();
|
||||||
if (extCount < 1) return NS_ERROR_NOT_INITIALIZED;
|
if (extCount < 1) return NS_OK;
|
||||||
|
|
||||||
if (!aExtension) return NS_ERROR_NULL_POINTER;
|
if (!aExtension) return NS_ERROR_NULL_POINTER;
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ nsMIMEInfoImpl::ExtensionExists(const char *aExtension, PRBool *_retval) {
|
||||||
NS_ASSERTION(aExtension, "no extension");
|
NS_ASSERTION(aExtension, "no extension");
|
||||||
PRBool found = PR_FALSE;
|
PRBool found = PR_FALSE;
|
||||||
PRUint32 extCount = mExtensions.Count();
|
PRUint32 extCount = mExtensions.Count();
|
||||||
if (extCount < 1) return NS_ERROR_NOT_INITIALIZED;
|
if (extCount < 1) return NS_OK;
|
||||||
|
|
||||||
if (!aExtension) return NS_ERROR_NULL_POINTER;
|
if (!aExtension) return NS_ERROR_NULL_POINTER;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче