From b5f24cc0accc9deae393ac169d4cfdad21ab7cf4 Mon Sep 17 00:00:00 2001 From: "locka%iol.ie" Date: Tue, 13 Jun 2000 11:50:40 +0000 Subject: [PATCH] Fixed incorrect pathname resolution for embedding apps trying to load res:// URLs from places other than mozilla/bin b=42249, approved=warren --- netwerk/protocol/res/src/nsResProtocolHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netwerk/protocol/res/src/nsResProtocolHandler.cpp b/netwerk/protocol/res/src/nsResProtocolHandler.cpp index 02a67e149f3..da3b5a4aca6 100644 --- a/netwerk/protocol/res/src/nsResProtocolHandler.cpp +++ b/netwerk/protocol/res/src/nsResProtocolHandler.cpp @@ -95,7 +95,7 @@ nsResProtocolHandler::Init() if (NS_FAILED(rv)) return rv; // make "res:///" == "resource:/" - rv = SetSpecialDir("", "system.OS_CurrentProcessDirectory"); + rv = SetSpecialDir("", "xpcom.currentProcess"); if (NS_FAILED(rv)) return rv; rv = SetSpecialDir("CurrentDir", "system.OS_CurrentWorkingDirectory"); @@ -128,7 +128,7 @@ nsResProtocolHandler::Init() // Set up the "Resource" root to point to the old resource location // such that: // resource:// == res://Resource/ - rv = SetSpecialDir("Resource", "system.OS_CurrentProcessDirectory"); + rv = SetSpecialDir("Resource", "xpcom.currentProcess"); if (NS_FAILED(rv)) return rv; return rv;