XP fix: AddERExcludedApplication now gets last error if it returns false.

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2034 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
dmex04
2009-10-02 23:52:34 +00:00
parent 079ccc7a0e
commit f3316ddcc3
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -131,7 +131,9 @@ namespace ProcessHacker
{
if (!Native.Api.Win32.AddERExcludedApplication(AppDomain.CurrentDomain.FriendlyName))
{
PhUtils.ShowWarning("Process Hacker was not excluded from Windows Error Reporting");
PhUtils.ShowWarning(
"Process Hacker was not excluded from Windows Error Reporting: " +
Win32.GetLastErrorMessage());
}
}
else