From a2d9db4f27df99924dd3093f2ac035260371ee0f Mon Sep 17 00:00:00 2001 From: "ssu%netscape.com" Date: Tue, 16 May 2000 22:01:59 +0000 Subject: [PATCH] fixing bug #37457. Xpinstall's File.dirRemove() is now working. --- xpcom/io/nsLocalFileWin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);