Fixed compiling for .NET 2.0

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2572 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-04-21 18:19:32 +00:00
commit f9c486f78d

View file

@ -609,7 +609,7 @@ namespace Greenshot.Helpers {
// Added fallback for when the explorer can't be found
if (errorMessage != null) {
try {
string windowsPath = Environment.GetFolderPath(Environment.SpecialFolder.Windows);
string windowsPath = Environment.GetEnvironmentVariable("SYSTEMROOT");
string explorerPath = Path.Combine(windowsPath, "explorer.exe");
if (File.Exists(explorerPath)) {
ProcessStartInfo psi = new ProcessStartInfo(explorerPath);