Fixed incorrect pathname resolution for embedding apps trying to load res:// URLs from places other than mozilla/bin

b=42249, approved=warren
This commit is contained in:
locka%iol.ie 2000-06-13 11:50:40 +00:00
Родитель 46e89079d5
Коммит b5f24cc0ac
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -95,7 +95,7 @@ nsResProtocolHandler::Init()
if (NS_FAILED(rv)) return rv; if (NS_FAILED(rv)) return rv;
// make "res:///" == "resource:/" // make "res:///" == "resource:/"
rv = SetSpecialDir("", "system.OS_CurrentProcessDirectory"); rv = SetSpecialDir("", "xpcom.currentProcess");
if (NS_FAILED(rv)) return rv; if (NS_FAILED(rv)) return rv;
rv = SetSpecialDir("CurrentDir", "system.OS_CurrentWorkingDirectory"); rv = SetSpecialDir("CurrentDir", "system.OS_CurrentWorkingDirectory");
@ -128,7 +128,7 @@ nsResProtocolHandler::Init()
// Set up the "Resource" root to point to the old resource location // Set up the "Resource" root to point to the old resource location
// such that: // such that:
// resource://<path> == res://Resource/<path> // resource://<path> == res://Resource/<path>
rv = SetSpecialDir("Resource", "system.OS_CurrentProcessDirectory"); rv = SetSpecialDir("Resource", "xpcom.currentProcess");
if (NS_FAILED(rv)) return rv; if (NS_FAILED(rv)) return rv;
return rv; return rv;