Ignore:
Timestamp:
3/17/2008 10:57:44 AM (7 years ago)
Author:
lowjoel
Message:

Fixed defaults when the program is started for the first time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Eraser/Program.cs

    r284 r288  
    8181            RegistryKey key = Application.UserAppDataRegistry; 
    8282            ActivePRNG = new Guid((string) 
    83                 key.GetValue("PRNG", (object)Guid.Empty)); 
     83                key.GetValue("PRNG", Guid.Empty.ToString())); 
    8484            EraseLockedFilesOnRestart = 
    85                 (int)key.GetValue("EraseOnRestart", (object)true) != 0; 
     85                (int)key.GetValue("EraseOnRestart", (object)1) != 0; 
    8686            ConfirmEraseOnRestart = 
    87                 (int)key.GetValue("ConfirmEraseOnRestart", (object)true) != 0; 
     87                (int)key.GetValue("ConfirmEraseOnRestart", (object)1) != 0; 
    8888            DefaultFileErasureMethod = new Guid((string) 
    89                 key.GetValue("DefaultFileErasureMethod", (object)Guid.Empty)); 
     89                key.GetValue("DefaultFileErasureMethod", Guid.Empty.ToString())); 
    9090            DefaultUnusedSpaceErasureMethod = new Guid((string) 
    91                 key.GetValue("DefaultUnusedSpaceErasureMethod", (object)Guid.Empty)); 
     91                key.GetValue("DefaultUnusedSpaceErasureMethod", Guid.Empty.ToString())); 
    9292            ExecuteMissedTasksImmediately = 
    93                 (int)key.GetValue("ExecuteMissedTasksImmediately", (object)true) != 0; 
     93                (int)key.GetValue("ExecuteMissedTasksImmediately", (object)1) != 0; 
    9494        } 
    9595 
Note: See TracChangeset for help on using the changeset viewer.