We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddf9abd commit ea46384Copy full SHA for ea46384
Injector/StringUtil.h
@@ -27,6 +27,6 @@ inline std::wstring utf8_to_wstr(const std::string& utf8)
27
// input has a trailing null, and if we include it in the size parameter.
28
//
29
// utf8.size() excludes the trailing null, so the wstring does too
30
- MultiByteToWideChar(CP_UTF8, 0, utf8.data(), static_cast<int>(utf8.size()), wstr.data(), wideCharCount);
+ MultiByteToWideChar(CP_UTF8, 0, utf8.data(), static_cast<int>(utf8.size()), (LPWSTR)wstr.data(), wideCharCount);
31
return wstr;
32
}
0 commit comments