mirror of
https://github.com/babalae/better-genshin-impact
synced 2025-01-08 11:57:53 +08:00
update: OSVERSIONINFOEX
This commit is contained in:
parent
4bf5001a2c
commit
cb75cf8338
@ -59,7 +59,7 @@ public static class OsVersionHelper
|
||||
throw new PlatformNotSupportedException("Setup can only run on Windows.");
|
||||
}
|
||||
|
||||
versionCache = new Version(osv.MajorVersion, osv.MinorVersion, osv.BuildNumber, osv.Revision);
|
||||
versionCache = new Version(osv.MajorVersion, osv.MinorVersion, osv.BuildNumber, osv.PlatformId);
|
||||
}
|
||||
return versionCache;
|
||||
}
|
||||
|
@ -177,7 +177,6 @@ public struct OSVERSIONINFOEX
|
||||
public int MajorVersion;
|
||||
public int MinorVersion;
|
||||
public int BuildNumber;
|
||||
public int Revision;
|
||||
public int PlatformId;
|
||||
|
||||
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
|
||||
|
@ -1,9 +1,5 @@
|
||||
using MicaSetup.Design.Controls;
|
||||
|
||||
using MicaSetup.Design.Controls;
|
||||
|
||||
using MicaSetup.Helper;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Media;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user