From 1da7619ee46499d282cc2a94b23761dc87562340 Mon Sep 17 00:00:00 2001 From: "bryner%netscape.com" Date: Sat, 21 Sep 2002 08:26:02 +0000 Subject: [PATCH] Fix a problem with the prefs file being deleted at shutdown on Windows, introduced by the checkin for bug 164190. Windows' implementation of nsLocalFile::CopyMove was assuming that a null parent directory meant we should always rename - not true. r=hewitt, sr=brendan. git-svn-id: svn://10.0.0.236/trunk@130202 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/io/nsLocalFileWin.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/mozilla/xpcom/io/nsLocalFileWin.cpp b/mozilla/xpcom/io/nsLocalFileWin.cpp index 1c461ba6ee2..c6b637cd61f 100644 --- a/mozilla/xpcom/io/nsLocalFileWin.cpp +++ b/mozilla/xpcom/io/nsLocalFileWin.cpp @@ -1001,8 +1001,6 @@ nsLocalFile::CopyMove(nsIFile *aParentDir, const nsACString &newName, PRBool fol if (newName.IsEmpty()) return NS_ERROR_INVALID_ARG; - move = PR_TRUE; - rv = GetParent(getter_AddRefs(newParentDir)); if (NS_FAILED(rv)) return rv;