Skip to content

Commit

Permalink
[MouseWithoutBorders] - fixed failing build - microsoft#34126
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeclayton committed Oct 1, 2024
1 parent bb23f83 commit da313ea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/modules/MouseWithoutBorders/App/Helper/FormHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private void QuitDueToCommunicationError()

if (Process.GetCurrentProcess().SessionId != NativeMethods.WTSGetActiveConsoleSessionId())
{
Logger.LogEvent(Application.ProductName + " cannot be used in a remote desktop or virtual machine session.");
EventLogger.LogEvent(Application.ProductName + " cannot be used in a remote desktop or virtual machine session.");
}
else
{
Expand Down Expand Up @@ -135,7 +135,7 @@ private void FormHelper_DragEnter(object sender, DragEventArgs e)
}
catch (Exception ex)
{
Logger.LogEvent("FormHelper_DragEnter: " + ex.Message, EventLogEntryType.Error);
EventLogger.LogEvent("FormHelper_DragEnter: " + ex.Message, EventLogEntryType.Error);
QuitDueToCommunicationError();
}
}
Expand Down Expand Up @@ -164,11 +164,11 @@ internal void SendLog(string log)
{
try
{
Logger.LogEvent(log, EventLogEntryType.Warning);
EventLogger.LogEvent(log, EventLogEntryType.Warning);
}
catch (Exception e)
{
Logger.LogEvent(log + " ==> SendLog Exception: " + e.Message, EventLogEntryType.Warning);
EventLogger.LogEvent(log + " ==> SendLog Exception: " + e.Message, EventLogEntryType.Warning);
}
}

Expand Down Expand Up @@ -343,7 +343,7 @@ protected override void WndProc(ref Message m)
}
catch (Exception ex)
{
Logger.LogEvent("WM_DRAWCLIPBOARD: " + ex.Message, EventLogEntryType.Error);
EventLogger.LogEvent("WM_DRAWCLIPBOARD: " + ex.Message, EventLogEntryType.Error);
QuitDueToCommunicationError();
}

Expand Down

0 comments on commit da313ea

Please sign in to comment.