dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/Microsoft/Win32 FileKeyProvid


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/Microsoft/Win32 FileKeyProvider.cs, 1.1, 1.2
Date: Sat, 30 Aug 2003 23:41:08 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/Microsoft/Win32
In directory subversions:/tmp/cvs-serv15163/runtime/Microsoft/Win32

Modified Files:
        FileKeyProvider.cs 
Log Message:



Index: FileKeyProvider.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/Microsoft/Win32/FileKeyProvider.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** FileKeyProvider.cs  24 Jul 2003 05:02:44 -0000      1.1
--- FileKeyProvider.cs  31 Aug 2003 03:41:06 -0000      1.2
***************
*** 92,97 ****
                                        return;
                                }
!                               Errno error = DirMethods.CreateDirectory(name);
!                               if(error != Errno.Success && error != 
Errno.EEXIST)
                                {
                                        throw new NotSupportedException();
--- 92,100 ----
                                        return;
                                }
!                               try
!                               {
!                                       Directory.CreateDirectory(name);
!                               }
!                               catch(Exception)
                                {
                                        throw new NotSupportedException();
***************
*** 114,131 ****
                                this.fullName = name;
  
!                               // Find the root position of the registry.
!                               String root = Environment.GetEnvironmentVariable
!                                       ("CLI_STORAGE_ROOT");
!                               if(root == null || root == String.Empty)
!                               {
!                                       String home = 
Environment.GetEnvironmentVariable("HOME");
!                                       if(home == null || home == String.Empty 
||
!                                          !Directory.Exists(home))
!                                       {
!                                               throw new 
NotSupportedException();
!                                       }
!                                       root = home + 
Path.DirectorySeparatorChar + ".cli";
!                                       CreateDirectory(root);
!                               }
  
                                // Build the full pathname for the hive 
directory.
--- 117,122 ----
                                this.fullName = name;
  
!                               // Find the root position of the user's storage 
area.
!                               String root = InfoMethods.GetUserStorageDir();
  
                                // Build the full pathname for the hive 
directory.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]