Support dos paths in registry.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace OpenRA.Mods.Common.Installer
|
||||
@@ -33,6 +34,9 @@ namespace OpenRA.Mods.Common.Installer
|
||||
if (!(Microsoft.Win32.Registry.GetValue(prefix + source.RegistryKey, source.RegistryValue, null) is string path))
|
||||
continue;
|
||||
|
||||
// Resolve 8.3 format (DOS-style) paths to the full path.
|
||||
path = Path.GetFullPath(path);
|
||||
|
||||
return InstallerUtils.IsValidSourcePath(path, source) ? path : null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user