Skip to content

Commit 32baed2

Browse files
committed
Should be an equality check, not inequality.
1 parent 3769c1f commit 32baed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RetailCoder.VBE/Common/Hotkeys/Hotkey.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private void HookKey(Keys key, uint shift)
9191
}
9292

9393
var hookId = (IntPtr)Kernel32.GlobalAddAtom(Guid.NewGuid().ToString());
94-
if (hookId != IntPtr.Zero)
94+
if (hookId == IntPtr.Zero)
9595
{
9696
Logger.Warn($"Error calling GlobalAddAtom; the error was {Marshal.GetLastWin32Error()}; aborting the HookKey operation...");
9797
return;

0 commit comments

Comments
 (0)