File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments