mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 956507 - mingw fixup.
This commit is contained in:
parent
629992152d
commit
2814fcb95a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user