diff -r c1a4377c11d1 -r 0a386ef7d5bb Hardware/Ring0.cs --- a/Hardware/Ring0.cs Wed Jul 11 17:35:30 2012 +0000 +++ b/Hardware/Ring0.cs Wed Jul 11 22:28:39 2012 +0000 @@ -4,7 +4,7 @@ License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. - Copyright (C) 2010-2011 Michael Möller + Copyright (C) 2010-2012 Michael Möller */ @@ -75,7 +75,8 @@ private static bool ExtractDriver(string fileName) { string resourceName = "OpenHardwareMonitor.Hardware." + - (IntPtr.Size == 4 ? "WinRing0.sys" : "WinRing0x64.sys"); + (OperatingSystem.Is64BitOperatingSystem() ? "WinRing0x64.sys" : + "WinRing0.sys"); string[] names = Assembly.GetExecutingAssembly().GetManifestResourceNames();