keep stack trace when rethrowing exception

This commit is contained in:
Paddy Xu
2017-05-28 00:19:51 +03:00
parent f4e68c109e
commit 7e95d5ea2b
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.ExceptionServices;
using System.Windows;
using System.Windows.Forms;
using QuickLook.Helpers;
@@ -202,7 +203,7 @@ namespace QuickLook
}
else
{
throw;
ExceptionDispatchInfo.Capture(e).Throw();
}
}
}