Skip to content

Commit 730da6d

Browse files
committed
These are not the typos you are looking for.
1 parent 8b9c4f0 commit 730da6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

RetailCoder.VBE/Common/TimerHook.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void Attach()
3535
var timerId = (IntPtr)Kernel32.GlobalAddAtom(Guid.NewGuid().ToString());
3636
if (timerId == IntPtr.Zero)
3737
{
38-
_log.Warn($"Unable to create a global atom for timer hook; error was {Marshal.GetLastWin32Error()}; aborting the Attach operation...");
38+
_log.Warn($"Unable to create a global atom for TimerHook; error was {Marshal.GetLastWin32Error()}; aborting the Attach operation...");
3939
return;
4040
}
4141

@@ -45,7 +45,7 @@ public void Attach()
4545
}
4646
else
4747
{
48-
_log.Warn($"Global atom was created but SetTime failed with error {Marshal.GetLastWin32Error()}; aborting the Attach operation...");
48+
_log.Warn($"Global atom was created but SetTimer failed with error {Marshal.GetLastWin32Error()}; aborting the Attach operation...");
4949
Kernel32.SetLastError(Kernel32.ERROR_SUCCESS);
5050
Kernel32.GlobalDeleteAtom(timerId);
5151
var lastError = Marshal.GetLastWin32Error();
@@ -81,7 +81,7 @@ public void Detach()
8181
var lastError = Marshal.GetLastWin32Error();
8282
if(lastError!=Kernel32.ERROR_SUCCESS)
8383
{
84-
_log.Warn($"Error with executing GlobalDeleteAtom; the error was {lastError}; the hook will be deatched anyway; the timerId was {_timerId}");
84+
_log.Warn($"Error with executing GlobalDeleteAtom; the error was {lastError}; the hook will be leaked; the timerId was {_timerId}");
8585
}
8686

8787
_timerId = IntPtr.Zero;

0 commit comments

Comments
 (0)