Skip to content

Commit

Permalink
ShellExt: fixed compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
zenden2k committed Mar 30, 2019
1 parent 89457a4 commit 6111f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Func/WinUtils.cpp
Expand Up @@ -559,7 +559,7 @@ LPTSTR ExtractFilePath(LPCTSTR FileName, LPTSTR buf, size_t bufferSize)
if (FileName[i] == _T('\\') || FileName[i] == _T('/'))
break;
}
lstrcpyn(buf, FileName, std::min(i + 2, static_cast<int>(bufferSize)-1));
lstrcpyn(buf, FileName, (std::min)(i + 2, static_cast<int>(bufferSize)-1));
return buf;
}

Expand Down

0 comments on commit 6111f4f

Please sign in to comment.