Widow

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 25  →  ?path2? @ 26
/trunk/Widow/Helpers.cs
@@ -66,8 +66,15 @@
public static string GetProcessName(IntPtr hWnd)
{
Natives.GetWindowThreadProcessId(hWnd, out var pid);
var process = Process.GetProcessById((int) pid);
return process.ProcessName;
try
{
var process = Process.GetProcessById((int) pid);
return process.ProcessName;
}
catch
{
return string.Empty;
}
}
 
#endregion
/trunk/Widow/RuleEditForm.cs
@@ -125,15 +125,7 @@
return;
}
 
string process;
try
{
process = Helpers.GetProcessName(e.Handle);
}
catch
{
return;
}
var process = Helpers.GetProcessName(e.Handle);
 
if (string.IsNullOrEmpty(process))
{