Changeset 1724


Ignore:
Timestamp:
01/30/10 01:57:20 (5 years ago)
Author:
lowjoel
Message:

Fixed crash when checking for low disk space notifications: if the policy is not defined the registry key object will be null and we'll trigger a NullReferenceException?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6/Eraser.Util/ShellApi.cs

    r1706 r1724  
    5353                    "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer")) 
    5454                { 
     55                    if (key == null) 
     56                        return true; 
    5557                    return !Convert.ToBoolean(key.GetValue("NoLowDiskSpaceChecks", false)); 
    5658                } 
Note: See TracChangeset for help on using the changeset viewer.