Hardware/HDD/HDDGroup.cs
changeset 195 0ee888c485d5
parent 165 813d8bc3192f
child 204 59278dadc5c0
     1.1 --- a/Hardware/HDD/HDDGroup.cs	Tue Sep 21 10:33:28 2010 +0000
     1.2 +++ b/Hardware/HDD/HDDGroup.cs	Tue Sep 21 20:32:36 2010 +0000
     1.3 @@ -43,11 +43,11 @@
     1.4  
     1.5      private const int MAX_DRIVES = 32;
     1.6  
     1.7 -    private List<HDD> hardware = new List<HDD>();
     1.8 +    private readonly List<HDD> hardware = new List<HDD>();
     1.9  
    1.10      public HDDGroup(ISettings settings) {
    1.11  
    1.12 -      int p = (int)System.Environment.OSVersion.Platform;
    1.13 +      int p = (int)Environment.OSVersion.Platform;
    1.14        if ((p != 4) && (p != 128)) {
    1.15          for (int drive = 0; drive < MAX_DRIVES; drive++) {
    1.16            IntPtr handle = SMART.OpenPhysicalDrive(drive);