Bug 956507 - mingw fixup.

This commit is contained in:
Jacek Caban 2014-02-10 12:06:30 +01:00
parent 629992152d
commit 2814fcb95a

View File

@ -107,7 +107,7 @@ Library::Create(JSContext* cx, jsval path_, JSCTypesCallbacks* callbacks)
#ifdef XP_WIN
// On Windows, converting to native charset may corrupt path string.
// So, we have to use Unicode path directly.
const char16_t* pathChars = JS_GetFlatStringChars(pathStr);
char16ptr_t pathChars = JS_GetFlatStringChars(pathStr);
if (!pathChars)
return nullptr;