diff -r fbf22ccd9d6f -r 0ee888c485d5 Hardware/WinRing0.cs --- a/Hardware/WinRing0.cs Tue Sep 21 10:33:28 2010 +0000 +++ b/Hardware/WinRing0.cs Tue Sep 21 20:32:36 2010 +0000 @@ -55,11 +55,11 @@ OLS_DLL_UNKNOWN_ERROR = 9 } - private static bool available = false; + private static bool available; private static Mutex isaBusMutex; private static string GetDllName() { - int p = (int)System.Environment.OSVersion.Platform; + int p = (int)Environment.OSVersion.Platform; if ((p == 4) || (p == 128)) { if (IntPtr.Size == 4) { return "libring0.so"; @@ -97,9 +97,9 @@ UIntPtr threadAffinityMask); public delegate bool RdtscDelegate(out uint eax, out uint edx); - private static InitializeOlsDelegate InitializeOls = + private static readonly InitializeOlsDelegate InitializeOls = CreateDelegate("InitializeOls"); - private static DeinitializeOlsDelegate DeinitializeOls = + private static readonly DeinitializeOlsDelegate DeinitializeOls = CreateDelegate("DeinitializeOls"); public static readonly IsCpuidDelegate IsCpuid =