From 1faafaa8147bbf45e0fdcaddb0a7bde463d36b44 Mon Sep 17 00:00:00 2001 From: DragonzMaster Date: Tue, 26 May 2015 20:36:14 +0200 Subject: [PATCH] Startup Manger Fix [Client] Changed CurrentUser to LocalMachine As these values located in LocalMachine NOT CurrentUser --- Client/Core/Commands/SystemHandler.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Client/Core/Commands/SystemHandler.cs b/Client/Core/Commands/SystemHandler.cs index dd02674c..b3633ec8 100644 --- a/Client/Core/Commands/SystemHandler.cs +++ b/Client/Core/Commands/SystemHandler.cs @@ -101,7 +101,7 @@ public static void HandleGetStartupItems(Packets.ServerPackets.GetStartupItems c { using ( var key = - Registry.CurrentUser.OpenSubKey( + Registry.LocalMachine.OpenSubKey( "SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Run", false)) { @@ -113,7 +113,7 @@ public static void HandleGetStartupItems(Packets.ServerPackets.GetStartupItems c } using ( var key = - Registry.CurrentUser.OpenSubKey( + Registry.LocalMachine.OpenSubKey( "SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\RunOnce", false)) { @@ -363,4 +363,4 @@ public static void CloseShell() _shell.Dispose(); } } -} \ No newline at end of file +}