[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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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()
}