diff --git a/mozilla/htmlparser/src/nsExpatDriver.cpp b/mozilla/htmlparser/src/nsExpatDriver.cpp
index 4f5c997c4c7..cdffc4e37a6 100644
--- a/mozilla/htmlparser/src/nsExpatDriver.cpp
+++ b/mozilla/htmlparser/src/nsExpatDriver.cpp
@@ -269,7 +269,7 @@ IsLoadableDTD(const nsCatalogData* aCatalogData, nsCOMPtr* aDTD)
}
nsCOMPtr dtdPath;
- NS_GetSpecialDirectory(NS_OS_CURRENT_PROCESS_DIR,
+ NS_GetSpecialDirectory(NS_GRE_DIR,
getter_AddRefs(dtdPath));
if (!dtdPath)
diff --git a/mozilla/parser/htmlparser/src/nsExpatDriver.cpp b/mozilla/parser/htmlparser/src/nsExpatDriver.cpp
index 4f5c997c4c7..cdffc4e37a6 100644
--- a/mozilla/parser/htmlparser/src/nsExpatDriver.cpp
+++ b/mozilla/parser/htmlparser/src/nsExpatDriver.cpp
@@ -269,7 +269,7 @@ IsLoadableDTD(const nsCatalogData* aCatalogData, nsCOMPtr* aDTD)
}
nsCOMPtr dtdPath;
- NS_GetSpecialDirectory(NS_OS_CURRENT_PROCESS_DIR,
+ NS_GetSpecialDirectory(NS_GRE_DIR,
getter_AddRefs(dtdPath));
if (!dtdPath)