Fixed Issue 224.
authormoel.mich
Sun, 22 May 2011 10:41:35 +0000
changeset 2939c1b242b1c63
parent 292 6b9c44598a5d
child 294 f7f0f3bafbb7
Fixed Issue 224.
Hardware/Ring0.cs
     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(