mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 08:54:12 +08:00
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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user