[client] Fix windows info out of bounds panic (#3196)

This commit is contained in:
Viktor Liu
2025-01-16 22:19:32 +01:00
committed by GitHub
parent 481bbe8513
commit 3e9f0d57ac

View File

@@ -105,7 +105,7 @@ func getOSNameAndVersion() (string, string) {
split := strings.Split(dst[0].Caption, " ")
if len(split) < 3 {
if len(split) <= 3 {
return "Windows", getBuildVersion()
}