From 6111f4f83de13f86a914464ea43420252b8a5eee Mon Sep 17 00:00:00 2001 From: zenden2k Date: Sat, 30 Mar 2019 18:49:34 +0300 Subject: [PATCH] ShellExt: fixed compilation --- Source/Func/WinUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Func/WinUtils.cpp b/Source/Func/WinUtils.cpp index b62d127b..39fe7983 100644 --- a/Source/Func/WinUtils.cpp +++ b/Source/Func/WinUtils.cpp @@ -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(bufferSize)-1)); + lstrcpyn(buf, FileName, (std::min)(i + 2, static_cast(bufferSize)-1)); return buf; }