We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1f4f88 commit b74ea00Copy full SHA for b74ea00
Flow.Launcher.Infrastructure/Exception/ExceptionFormatter.cs
@@ -177,12 +177,9 @@ public static string GetWindowsFullVersionFromRegistry()
177
{
178
try
179
180
- using (RegistryKey registryKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion\"))
181
- {
182
- var buildRevision = GetWindowsRevisionFromRegistry();
183
- var currentBuild = registryKey.GetValue("CurrentBuild").ToString();
184
- return currentBuild + "." + buildRevision;
185
- }
+ var buildRevision = GetWindowsRevisionFromRegistry();
+ var currentBuild = Environment.OSVersion.Version.Build;
+ return currentBuild.ToString() + "." + buildRevision;
186
}
187
catch
188
0 commit comments