Commit f249d420 authored by nanahira's avatar nanahira

fix

parent 9e22a70e
Pipeline #37746 passed with stages
in 8 minutes and 16 seconds
...@@ -2559,7 +2559,7 @@ void Game::InjectEnvToRegistry(intptr_t pduel) { ...@@ -2559,7 +2559,7 @@ void Game::InjectEnvToRegistry(intptr_t pduel) {
const wchar_t* equal_pos = wcschr(var, L'='); const wchar_t* equal_pos = wcschr(var, L'=');
if (equal_pos && equal_pos > var + prefix_len) { if (equal_pos && equal_pos > var + prefix_len) {
// 拆 key 和 value(UTF-16) // 拆 key 和 value(UTF-16)
std::wstring key_w(var + prefix_len, equal_pos); // foo std::wstring key_w(var + prefix_len, equal_pos - (var + prefix_len)); // foo
std::wstring value_w(equal_pos + 1); // bar std::wstring value_w(equal_pos + 1); // bar
char key_utf8[256]{}; char key_utf8[256]{};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment