fixed #7959: Removed admin check

This commit is contained in:
Jaex 2025-06-04 23:47:25 +03:00
parent e7fffd49b0
commit 9e8a56e3c2
2 changed files with 2 additions and 6 deletions

View File

@ -54,7 +54,8 @@ namespace ShareX.HelpersLib
using (Process currentProcess = Process.GetCurrentProcess())
using (ProcessModule currentModule = currentProcess.MainModule)
{
return NativeMethods.SetWindowsHookEx(hookType, hookProc, NativeMethods.GetModuleHandle(currentModule.ModuleName), 0);
IntPtr moduleHandle = NativeMethods.GetModuleHandle(currentModule.ModuleName);
return NativeMethods.SetWindowsHookEx(hookType, hookProc, moduleHandle, 0);
}
}

View File

@ -388,11 +388,6 @@ namespace ShareX
private static void SingleInstanceManager_ArgumentsReceived(string[] arguments)
{
if (IsAdmin && arguments != null && arguments.Length > 0)
{
return;
}
string message = "Arguments received: ";
if (arguments == null)