mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-26 23:24:00 +08:00
(GUI): adjusted TroubleShootingDialog.GetOSVersion.
This commit is contained in:
parent
ebbac01c40
commit
978da7fe92
@ -69,10 +69,7 @@ namespace GARbro.GUI
|
||||
|
||||
internal static string GetOSVersion ()
|
||||
{
|
||||
string id = Registry.GetValue (@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ReleaseId", "").ToString();
|
||||
if (string.IsNullOrEmpty (id))
|
||||
{
|
||||
id = Registry.GetValue (@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ProductName", "").ToString();
|
||||
string id = Registry.GetValue (@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ProductName", "").ToString();
|
||||
if (string.IsNullOrEmpty (id))
|
||||
id = Environment.OSVersion.VersionString;
|
||||
else
|
||||
@ -81,7 +78,6 @@ namespace GARbro.GUI
|
||||
if (!string.IsNullOrEmpty (sp))
|
||||
id += ' '+sp;
|
||||
}
|
||||
}
|
||||
return id;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user