From d33011ceedca2d7f651a9f5dc7138fcb3a5a3821 Mon Sep 17 00:00:00 2001 From: "darin%netscape.com" Date: Sat, 27 Apr 2002 07:34:27 +0000 Subject: [PATCH] fixing OS/2 bustage --- xpcom/io/nsLocalFileOS2.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/xpcom/io/nsLocalFileOS2.cpp b/xpcom/io/nsLocalFileOS2.cpp index 1b809ebfd436..b2251c99fff4 100644 --- a/xpcom/io/nsLocalFileOS2.cpp +++ b/xpcom/io/nsLocalFileOS2.cpp @@ -624,13 +624,10 @@ NS_IMETHODIMP nsLocalFile::Clone(nsIFile **file) { nsresult rv; - char * aFilePath; - GetPath(&aFilePath); nsCOMPtr localFile; - rv = NS_NewLocalFile(aFilePath, mFollowSymlinks, getter_AddRefs(localFile)); - nsMemory::Free(aFilePath); + rv = NS_NewNativeLocalFile(mWorkingPath, mFollowSymlinks, getter_AddRefs(localFile)); if (NS_SUCCEEDED(rv) && localFile) {