We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3769c1f commit 32baed2Copy full SHA for 32baed2
RetailCoder.VBE/Common/Hotkeys/Hotkey.cs
@@ -91,7 +91,7 @@ private void HookKey(Keys key, uint shift)
91
}
92
93
var hookId = (IntPtr)Kernel32.GlobalAddAtom(Guid.NewGuid().ToString());
94
- if (hookId != IntPtr.Zero)
+ if (hookId == IntPtr.Zero)
95
{
96
Logger.Warn($"Error calling GlobalAddAtom; the error was {Marshal.GetLastWin32Error()}; aborting the HookKey operation...");
97
return;
0 commit comments