Skip to content

Commit ea46384

Browse files
committed
Update StringUtil.h
1 parent ddf9abd commit ea46384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Injector/StringUtil.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ inline std::wstring utf8_to_wstr(const std::string& utf8)
2727
// input has a trailing null, and if we include it in the size parameter.
2828
//
2929
// 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);
30+
MultiByteToWideChar(CP_UTF8, 0, utf8.data(), static_cast<int>(utf8.size()), (LPWSTR)wstr.data(), wideCharCount);
3131
return wstr;
3232
}

0 commit comments

Comments
 (0)