flash: Fix protected mode issues and invalid registry entires

This commit is contained in:
Daniel
2021-06-21 04:01:03 +03:00
parent 606d5c1e47
commit 8bb46337e1
6 changed files with 18 additions and 16 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Text;
namespace CleanFlashCommon {
public class RegistryManager {
@@ -9,7 +10,7 @@ namespace CleanFlashCommon {
registryContents = "Windows Registry Editor Version 5.00\n\n" + SystemInfo.FillString(registryContents);
string filename = Path.GetTempFileName();
File.WriteAllText(filename, registryContents);
File.WriteAllText(filename, registryContents, Encoding.Unicode);
Directory.SetCurrentDirectory(Path.GetDirectoryName(filename));