Skip to content

Commit

Permalink
[client] Fix windows info out of bounds panic (#3196)
Browse files Browse the repository at this point in the history
  • Loading branch information
lixmal authored Jan 16, 2025
1 parent 481bbe8 commit 3e9f0d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/system/info_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit 3e9f0d5

Please sign in to comment.