Bug 1119072, Part 12: Explicitly cast char16_t to wchar_t in dom/media/gmp/GMPChild.cpp, r=ehsan
authorBrian Smith <brian@briansmith.org>
Thu, 08 Jan 2015 15:26:28 -0800
changeset 251939 e357409960d7663c9ccd212e20f64fe6986b317b
parent 251938 916139e297bdb05128091a2ee73e6a75f64a97dd
child 251940 63b3bb2a4963346837a5f73ac9900d46ee451bd4
push id4610
push userjlund@mozilla.com
push dateMon, 30 Mar 2015 18:32:55 +0000
treeherdermozilla-beta@4df54044d9ef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs1119072
milestone38.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1119072, Part 12: Explicitly cast char16_t to wchar_t in dom/media/gmp/GMPChild.cpp, r=ehsan
dom/media/gmp/GMPChild.cpp
--- a/dom/media/gmp/GMPChild.cpp
+++ b/dom/media/gmp/GMPChild.cpp
@@ -312,17 +312,17 @@ GMPChild::PreLoadLibraries(const std::st
   nsCOMPtr<nsIFile> infoFile;
   GetInfoFile(aPluginPath, infoFile);
 
   nsString path;
   infoFile->GetPath(path);
 
   std::ifstream stream;
 #ifdef _MSC_VER
-  stream.open(path.get());
+  stream.open(static_cast<const wchar_t*>(path.get()));
 #else
   stream.open(NS_ConvertUTF16toUTF8(path).get());
 #endif
   if (!stream.good()) {
     NS_WARNING("Failure opening info file for required DLLs");
     return false;
   }