diff --git a/NiceHashMiner/Devices/ComputeDeviceManager.cs b/NiceHashMiner/Devices/ComputeDeviceManager.cs index 19bb8f0..3766e49 100644 --- a/NiceHashMiner/Devices/ComputeDeviceManager.cs +++ b/NiceHashMiner/Devices/ComputeDeviceManager.cs @@ -125,9 +125,9 @@ public static void QueryDevices(IMessageNotifier messageNotifier) { // check NVIDIA nvml.dll and copy over scope { string nvmlPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + "\\NVIDIA Corporation\\NVSMI\\nvml.dll"; + if (nvmlPath.Contains(" (x86)")) nvmlPath = nvmlPath.Replace(" (x86)", ""); if (File.Exists(nvmlPath)) { string copyToPath = Directory.GetCurrentDirectory() + "\\nvml.dll"; - if (nvmlPath.Contains(" (x86)")) nvmlPath = nvmlPath.Replace(" (x86)", ""); try { File.Copy(nvmlPath, copyToPath, true); Helpers.ConsolePrint(TAG, String.Format("Copy from {0} to {1} done", nvmlPath, copyToPath));