fix windows build with UNC paths disabled

This commit is contained in:
Steven Siloti 2018-03-05 14:30:01 -08:00 committed by Arvid Norberg
parent f98a7f3cf9
commit 5478f57e43
1 changed files with 2 additions and 2 deletions

View File

@ -211,8 +211,8 @@ namespace libtorrent {
? std::string(pe.data(), file_end)
: pe;
std::transform(name.begin(), name.end(), name.begin(), &to_lower);
char const* str = std::find(reserved_names, reserved_names + num_names, name);
if (str != reserved + num_names)
char const** str = std::find(reserved_names, reserved_names + num_names, name);
if (str != reserved_names + num_names)
{
pe = "_" + pe;
element = string_view();