summaryrefslogtreecommitdiff
path: root/xpcom/components/nsNativeModuleLoader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xpcom/components/nsNativeModuleLoader.cpp')
-rw-r--r--xpcom/components/nsNativeModuleLoader.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/xpcom/components/nsNativeModuleLoader.cpp b/xpcom/components/nsNativeModuleLoader.cpp
index bec3a11757..42e322be1b 100644
--- a/xpcom/components/nsNativeModuleLoader.cpp
+++ b/xpcom/components/nsNativeModuleLoader.cpp
@@ -104,7 +104,13 @@ nsNativeModuleLoader::LoadModule(FileLocation& aFile)
}
nsAutoCString filePath;
+#ifdef XP_WIN
+ nsAutoString filePathW;
+ file->GetPath(filePathW);
+ CopyUTF16toUTF8(filePathW, filePath);
+#else
file->GetNativePath(filePath);
+#endif
NativeLoadData data;