From 4c3fdb2c822a42a12185990b8209fb0b65416714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=B6ller?= Date: Tue, 18 May 2010 19:12:13 +0000 Subject: [PATCH] Fixed Issue 60. --- GUI/StartupManager.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/GUI/StartupManager.cs b/GUI/StartupManager.cs index b7fa66b..1318a2a 100644 --- a/GUI/StartupManager.cs +++ b/GUI/StartupManager.cs @@ -66,8 +66,12 @@ namespace OpenHardwareMonitor.GUI { startup = task != null; } catch (IOException) { startup = false; + } catch (UnauthorizedAccessException) { + scheduler = null; } - } else { + } + + if (scheduler == null) { RegistryKey key = Registry.CurrentUser.OpenSubKey(REGISTRY_RUN); startup = false; if (key != null) {