Skip to content

Commit

Permalink
Update StringUtil.h
Browse files Browse the repository at this point in the history
  • Loading branch information
nefarius committed Nov 8, 2023
1 parent ddf9abd commit ea46384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Injector/StringUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ inline std::wstring utf8_to_wstr(const std::string& utf8)
// input has a trailing null, and if we include it in the size parameter.
//
// utf8.size() excludes the trailing null, so the wstring does too
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);
return wstr;
}

0 comments on commit ea46384

Please sign in to comment.