fixed #7959: Removed admin check
This commit is contained in:
parent
e7fffd49b0
commit
9e8a56e3c2
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user