Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRune Henriksen <ruju@itu.dk>2018-10-29 11:03:10 +0300
committerGitHub <noreply@github.com>2018-10-29 11:03:10 +0300
commite33a145688bf9669be97ac9431321654afad669c (patch)
tree91f5ef85379abaa31fefc4b1667b10a975276a3b
parentd42b9938d00e98af8bbe5c7e779f8c56fa5e27db (diff)
parentec02dbca287540d9fb7199c06db48edc285e19bb (diff)
Merge pull request #3459 from mnaiman/hyper_v_win_detection
Improved detection Win10 & Win2019Server
-rw-r--r--Duplicati/Library/Snapshots/HyperVUtility.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Duplicati/Library/Snapshots/HyperVUtility.cs b/Duplicati/Library/Snapshots/HyperVUtility.cs
index 30d802fcf..c30583067 100644
--- a/Duplicati/Library/Snapshots/HyperVUtility.cs
+++ b/Duplicati/Library/Snapshots/HyperVUtility.cs
@@ -102,7 +102,7 @@ namespace Duplicati.Library.Snapshots
}
//Set the namespace depending off host OS
- _wmiv2Namespace = Environment.OSVersion.Version.Major >= 6 && Environment.OSVersion.Version.Minor >= 2;
+ _wmiv2Namespace = Environment.OSVersion.Version.Major > 6 || (Environment.OSVersion.Version.Major == 6 && Environment.OSVersion.Version.Minor >= 2);
//Set the scope to use in WMI. V2 for Server 2012 or newer.
_wmiScope = _wmiv2Namespace