summaryrefslogtreecommitdiff
path: root/xpcom/build/XPCOMInit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xpcom/build/XPCOMInit.cpp')
-rw-r--r--xpcom/build/XPCOMInit.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/xpcom/build/XPCOMInit.cpp b/xpcom/build/XPCOMInit.cpp
index 185a823155..835f250da1 100644
--- a/xpcom/build/XPCOMInit.cpp
+++ b/xpcom/build/XPCOMInit.cpp
@@ -688,9 +688,13 @@ NS_InitXPCOM2(nsIServiceManager** aResult,
getter_AddRefs(greDir));
MOZ_ASSERT(greDir);
nsAutoCString nativeGREPath;
+#ifdef XP_WIN
+ greDir->GetPersistentDescriptor(nativeGREPath);
+#else
greDir->GetNativePath(nativeGREPath);
- u_setDataDirectory(nativeGREPath.get());
#endif
+ u_setDataDirectory(nativeGREPath.get());
+#endif // MOZ_ICU_DATA_ARCHIVE
// Initialize the JS engine.
const char* jsInitFailureReason = JS_InitWithFailureDiagnostic();