Changeset 9 for Common


Ignore:
Timestamp:
Sep 5, 2019, 3:23:28 PM (5 years ago)
Author:
chronos
Message:
  • Fixed: Wrong registry floating type default value initialization.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/Registry.cs

    r8 r9  
    3737        public static float GetValueFloat(this RegistryKey regKey, string name, float defaultValue)
    3838        {
    39             object value = regKey.GetValue(name, defaultValue);
     39            object value = regKey.GetValue(name, defaultValue.ToString());
    4040            float num;
    4141            if (float.TryParse((string)value, out num))
Note: See TracChangeset for help on using the changeset viewer.