From 36d5cd47ec98ccfa5e6c4315dbc02b61d88c6f7a Mon Sep 17 00:00:00 2001 From: Mattias Wadman Date: Sun, 16 Jun 2024 22:22:16 +0200 Subject: [PATCH] pyrdp: Simplify always true condition --- format/pyrdp/pyrdp.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/format/pyrdp/pyrdp.go b/format/pyrdp/pyrdp.go index c5e99cb8..39a26834 100644 --- a/format/pyrdp/pyrdp.go +++ b/format/pyrdp/pyrdp.go @@ -34,8 +34,6 @@ func init() { } const ( - READ_EXTRA = true - // PDU Types. PDU_FAST_PATH_INPUT = 1 // Ex: scan codes, mouse, etc. PDU_FAST_PATH_OUTPUT = 2 // Ex: image @@ -132,11 +130,7 @@ func decodePYRDP(d *decode.D) any { parseFn(d, pduSize) curr := d.Pos() - pos - if READ_EXTRA { - d.FieldRawLen("extra", (int64(size)*8)-curr) // seek whatever is left - } else { - d.SeekRel((int64(size) * 8) - curr) // read whatever is left - } + d.FieldRawLen("extra", (int64(size)*8)-curr) // seek whatever is left }) } })