mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 18:58:55 +00:00
winupdater: fix CR getting into parsed VCToolsUpdateURL
This commit is contained in:
parent
0a8725e4a9
commit
06cb4ffa64
1 changed files with 4 additions and 1 deletions
|
@ -103,7 +103,10 @@ private:
|
||||||
auto key_it = map.find(key);
|
auto key_it = map.find(key);
|
||||||
if (key_it == map.end())
|
if (key_it == map.end())
|
||||||
continue;
|
continue;
|
||||||
key_it->second = line.substr(equals_index + 1);
|
auto val_start = equals_index + 1;
|
||||||
|
auto eol = line.find('\r', val_start);
|
||||||
|
auto val_size = (eol == line.npos) ? line.npos : eol - val_start;
|
||||||
|
key_it->second = line.substr(val_start, val_size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Map map;
|
Map map;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue