# HG changeset patch # User moel.mich # Date 1306060895 0 # Node ID 9c1b242b1c63e2523bd4cf322e06955db54b822f # Parent 6b9c44598a5d2fb51da288a043712b390d7cf85c Fixed Issue 224. diff -r 6b9c44598a5d -r 9c1b242b1c63 Hardware/Ring0.cs --- a/Hardware/Ring0.cs Thu May 19 07:24:30 2011 +0000 +++ b/Hardware/Ring0.cs Sun May 22 10:41:35 2011 +0000 @@ -77,8 +77,15 @@ // try to get a file in the temporary folder try { return Path.GetTempFileName(); - } catch (IOException) { } - catch (UnauthorizedAccessException) { } + } catch (IOException) { + // some I/O exception + } + catch (UnauthorizedAccessException) { + // we do not have the right to create a file in the temp folder + } + catch (NotSupportedException) { + // invalid path format of the TMP system environment variable + } // if this failed, we try to create one in the application folder string fileName = Path.ChangeExtension(