Skip to content

Portable Tool for an Ideal Windows Setup

fix invalid parameter crash in CreateProcessAsTrustedInstaller

Greedeks7a5e61c873a8
diff --git a/.Source/GTweak/Languages/ru/Localize.xaml b/.Source/GTweak/Languages/ru/Localize.xaml
index 808da47b..a9398c58 100644
--- a/.Source/GTweak/Languages/ru/Localize.xaml
+++ b/.Source/GTweak/Languages/ru/Localize.xaml
@@ -133,7 +133,7 @@
<v:String x:Key="btn_enable">Включить</v:String>
<v:String x:Key="title_clear_more">Очистка памяти</v:String>
- <v:String x:Key="text_clear_more">Очищает кэш системных файлов в памяти компьютера временные файлы и кэш эскизов.</v:String>
+ <v:String x:Key="text_clear_more">Очищает кэш системных файлов в памяти компьютера, временные файлы и кэш эскизов.</v:String>
<v:String x:Key="btn_clear">Очистить</v:String>
<v:String x:Key="title_ntfs_more">Сжатие NTFS</v:String>
diff --git a/.Source/GTweak/Utilities/Helpers/TrustedInstaller.cs b/.Source/GTweak/Utilities/Helpers/TrustedInstaller.cs
index 8b0fa42f..a112785a 100644
--- a/.Source/GTweak/Utilities/Helpers/TrustedInstaller.cs
+++ b/.Source/GTweak/Utilities/Helpers/TrustedInstaller.cs
@@ -65,7 +65,6 @@ namespace GTweak.Utilities.Helpers
private const int PROC_THREAD_ATTRIBUTE_PARENT_PROCESS = 0x00020000;
private const uint EXTENDED_STARTUPINFO_PRESENT = 0x00080000;
- private const uint CREATE_NO_WINDOW = 0x08000000;
[StructLayout(LayoutKind.Sequential)]
private struct SECURITY_ATTRIBUTES
@@ -286,10 +285,6 @@ namespace GTweak.Utilities.Helpers
};
uint creationFlags = EXTENDED_STARTUPINFO_PRESENT;
- if (!showWindow)
- {
- creationFlags |= CREATE_NO_WINDOW;
- }
if (!CreateProcess(null, binaryPath, ref ps, ref ts, true, creationFlags, IntPtr.Zero, null, ref siEx, out PROCESS_INFORMATION pInfo))
{