diff --git a/GW Launcher/MulticlientPatch.cs b/GW Launcher/MulticlientPatch.cs index 8cd22b1..eae6e36 100644 --- a/GW Launcher/MulticlientPatch.cs +++ b/GW Launcher/MulticlientPatch.cs @@ -129,7 +129,7 @@ private static IntPtr GetProcessModuleBase(IntPtr process) memory = new GWCAMemory(process); - var VK_SHIFT = 0x10; + const int VK_SHIFT = 0x10; //NB: Because account launching is done on another thread, we can't rely on WPF/WinForms API to tell us if shift is pressed if ((GetAsyncKeyState(VK_SHIFT) & 0x8000) != 0) { DialogResult result = @@ -177,7 +177,7 @@ private static IntPtr GetProcessModuleBase(IntPtr process) cleanup: if (err != null) { - // process?.Kill(); + process?.Kill(); memory = null; } // Make sure to restore the modfile.txt file (blank string if in the gwlauncher dir, whatever was there before if in the gw dir)