Skip to content

Commit

Permalink
bugfix: can't build with VC19.10 (VS2017)
Browse files Browse the repository at this point in the history
  • Loading branch information
Iouri Kharon committed Aug 8, 2017
1 parent 8ba016a commit 96ad380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion far/farwinapi.cpp
Expand Up @@ -1772,7 +1772,7 @@ FAR_SECURITY_DESCRIPTOR GetFileSecurity(const string& Object, SECURITY_INFORMATI
DWORD LengthNeeded = 0;
if (!::GetFileSecurity(NtObject.data(), RequestedInformation, reinterpret_cast<SECURITY_DESCRIPTOR*>(Buffer), static_cast<DWORD>(Size), &LengthNeeded))
return size_t(0);
return LengthNeeded <= Size? Size : LengthNeeded;
return LengthNeeded <= Size? Size : (size_t)LengthNeeded;
},
[](size_t ReturnedSize, size_t AllocatedSize)
{
Expand Down

0 comments on commit 96ad380

Please sign in to comment.