forked from Public-Mirror/Textractor
bugfix
This commit is contained in:
parent
4dc7b236c9
commit
e5dcd33680
@ -32,7 +32,7 @@ namespace Host
|
|||||||
inline std::wstring ToWString(const char* text, UINT encoding)
|
inline std::wstring ToWString(const char* text, UINT encoding)
|
||||||
{
|
{
|
||||||
std::wstring ret(strlen(text), 0);
|
std::wstring ret(strlen(text), 0);
|
||||||
ret.resize(MultiByteToWideChar(encoding, 0, text, -1, ret.data(), ret.size()));
|
ret.resize(MultiByteToWideChar(encoding, 0, text, -1, ret.data(), ret.capacity()));
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user