Hardware/WinRing0.cs
changeset 195 0ee888c485d5
parent 182 4801e9eaf979
child 196 5e9a8595296c
     1.1 --- a/Hardware/WinRing0.cs	Tue Sep 21 10:33:28 2010 +0000
     1.2 +++ b/Hardware/WinRing0.cs	Tue Sep 21 20:32:36 2010 +0000
     1.3 @@ -55,11 +55,11 @@
     1.4        OLS_DLL_UNKNOWN_ERROR                   = 9
     1.5      }
     1.6  
     1.7 -    private static bool available = false;
     1.8 +    private static bool available;
     1.9      private static Mutex isaBusMutex;
    1.10  
    1.11      private static string GetDllName() {   
    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          if (IntPtr.Size == 4) {
    1.16            return "libring0.so";
    1.17 @@ -97,9 +97,9 @@
    1.18        UIntPtr threadAffinityMask);
    1.19      public delegate bool RdtscDelegate(out uint eax, out uint edx);
    1.20  
    1.21 -    private static InitializeOlsDelegate InitializeOls = 
    1.22 +    private static readonly InitializeOlsDelegate InitializeOls = 
    1.23        CreateDelegate<InitializeOlsDelegate>("InitializeOls");
    1.24 -    private static DeinitializeOlsDelegate DeinitializeOls =
    1.25 +    private static readonly DeinitializeOlsDelegate DeinitializeOls =
    1.26        CreateDelegate<DeinitializeOlsDelegate>("DeinitializeOls");
    1.27  
    1.28      public static readonly IsCpuidDelegate IsCpuid =