Fixed Issue 224.
1.1 --- a/Hardware/Ring0.cs Thu May 19 07:24:30 2011 +0000
1.2 +++ b/Hardware/Ring0.cs Sun May 22 10:41:35 2011 +0000
1.3 @@ -77,8 +77,15 @@
1.4 // try to get a file in the temporary folder
1.5 try {
1.6 return Path.GetTempFileName();
1.7 - } catch (IOException) { }
1.8 - catch (UnauthorizedAccessException) { }
1.9 + } catch (IOException) {
1.10 + // some I/O exception
1.11 + }
1.12 + catch (UnauthorizedAccessException) {
1.13 + // we do not have the right to create a file in the temp folder
1.14 + }
1.15 + catch (NotSupportedException) {
1.16 + // invalid path format of the TMP system environment variable
1.17 + }
1.18
1.19 // if this failed, we try to create one in the application folder
1.20 string fileName = Path.ChangeExtension(