Skip to content

Commit

Permalink
Fixed fatal issue with Skype Overlay, changed some code to C#6
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-wh committed May 13, 2017
1 parent b8141fb commit ed17a11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static void SetIsCalling(bool state)
_is_calling = state;
}

public new bool IsEnabled
public override bool IsEnabled
{
get { return Global.Configuration.skype_overlay_settings.enabled; }
}
Expand Down
4 changes: 2 additions & 2 deletions Project-Aurora/Project-Aurora/Utils/ActiveProcessMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ public string GetActiveWindowsProcessname()
{
if (windowHandle.Equals(IntPtr.Zero))
windowHandle = GetForegroundWindow();

if (GetWindowThreadProcessId(windowHandle, out uint pid) > 0)
uint pid;
if (GetWindowThreadProcessId(windowHandle, out pid) > 0)
return Process.GetProcessById((int)pid).MainModule.FileName;
}
catch(Exception exc)
Expand Down

0 comments on commit ed17a11

Please sign in to comment.