scrcaps: fix bad check for unsupported scrcap presence

This commit is contained in:
mappu 2021-04-12 11:25:31 +12:00
parent 8366e4a29c
commit 3ea89f1674
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ func (ltc *loadTupContent) Validate() error {
return fmt.Errorf("scrsecs/scrcaps length mismatch")
}
if !(len(ltc.Scrcaps) == 0 || ltc.Scrcaps[0] == "") {
if !(len(ltc.Scrcaps) == 0 || (len(ltc.Scrcaps) == 1 && ltc.Scrcaps[0] == "")) {
return errors.New("unsupported use of strcaps")
}