diff --git a/xpcom/io/nsLocalFileWin.cpp b/xpcom/io/nsLocalFileWin.cpp index 358cf6ddc74..bfd940c7d8b 100644 --- a/xpcom/io/nsLocalFileWin.cpp +++ b/xpcom/io/nsLocalFileWin.cpp @@ -1131,7 +1131,7 @@ nsLocalFile::Delete(PRBool recursive) if (recursive) { nsDirEnumerator* dirEnum = new nsDirEnumerator(); - if (dirEnum) + if (dirEnum == nsnull) return NS_ERROR_OUT_OF_MEMORY; rv = dirEnum->Init(this);