Commit 61684565 authored by Martin Finkel's avatar Martin Finkel
Browse files

Fix and simplify dll version check

parent 15435712
......@@ -55,12 +55,13 @@ namespace VideoLAN.LibVLC
{
if(_minimum)
{
return _strict
? DllVersion.Major > _requiredVersion.Major && DllVersion.Minor > _requiredVersion.Minor
: DllVersion.Major >= _requiredVersion.Major && DllVersion.Minor >= _requiredVersion.Minor;
if(_strict)
return DllVersion.CompareTo(_requiredVersion) > 0;
return DllVersion.CompareTo(_requiredVersion) >= 0;
}
return _strict ? DllVersion.Major < _requiredVersion.Major && DllVersion.Minor < _requiredVersion.Minor
: DllVersion.Major <= _requiredVersion.Major && DllVersion.Minor <= _requiredVersion.Minor;
if (_strict)
return DllVersion.CompareTo(_requiredVersion) < 0;
return DllVersion.CompareTo(_requiredVersion) <= 0;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment