mirror of
https://github.com/wader/fq.git
synced 2024-10-27 04:09:37 +03:00
pyrdp: Simplify always true condition
This commit is contained in:
parent
3986f2029e
commit
36d5cd47ec
@ -34,8 +34,6 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
READ_EXTRA = true
|
|
||||||
|
|
||||||
// PDU Types.
|
// PDU Types.
|
||||||
PDU_FAST_PATH_INPUT = 1 // Ex: scan codes, mouse, etc.
|
PDU_FAST_PATH_INPUT = 1 // Ex: scan codes, mouse, etc.
|
||||||
PDU_FAST_PATH_OUTPUT = 2 // Ex: image
|
PDU_FAST_PATH_OUTPUT = 2 // Ex: image
|
||||||
@ -132,11 +130,7 @@ func decodePYRDP(d *decode.D) any {
|
|||||||
parseFn(d, pduSize)
|
parseFn(d, pduSize)
|
||||||
|
|
||||||
curr := d.Pos() - pos
|
curr := d.Pos() - pos
|
||||||
if READ_EXTRA {
|
|
||||||
d.FieldRawLen("extra", (int64(size)*8)-curr) // seek whatever is left
|
d.FieldRawLen("extra", (int64(size)*8)-curr) // seek whatever is left
|
||||||
} else {
|
|
||||||
d.SeekRel((int64(size) * 8) - curr) // read whatever is left
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user