From f8f6b08b0c392e31c239b5ba7584654bd9c38c7e Mon Sep 17 00:00:00 2001 From: "dougt%netscape.com" Date: Mon, 24 Apr 2000 22:54:04 +0000 Subject: [PATCH] Adding xpcom.currentProcess git-svn-id: svn://10.0.0.236/trunk@67004 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/io/nsDirectoryService.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mozilla/xpcom/io/nsDirectoryService.cpp b/mozilla/xpcom/io/nsDirectoryService.cpp index c3e1cc3db8b..f3df87129d9 100644 --- a/mozilla/xpcom/io/nsDirectoryService.cpp +++ b/mozilla/xpcom/io/nsDirectoryService.cpp @@ -429,7 +429,11 @@ nsDirectoryService::GetFile(const char *prop, PRBool *persistant, nsIFile **_ret // check to see if it is one of our defaults - if (strncmp(prop, "xpcom.currentProcess.componentRegistry", 38) == 0) + if (strncmp(prop, "xpcom.currentProcess", 38) == 0) + { + rv = GetCurrentProcessDirectory(getter_AddRefs(localFile)); + } + else if (strncmp(prop, "xpcom.currentProcess.componentRegistry", 38) == 0) { rv = GetCurrentProcessDirectory(getter_AddRefs(localFile)); if (NS_FAILED(rv)) return rv;