mirror of
https://github.com/amitbet/vncproxy.git
synced 2025-04-27 02:40:49 +00:00
Merge pull request #16 from t-yuki/patch-1
Fix nil reference error for color map message
This commit is contained in:
commit
ea8f9b5109
@ -129,7 +129,7 @@ type MsgSetColorMapEntries struct {
|
||||
}
|
||||
|
||||
func (fbm *MsgSetColorMapEntries) CopyTo(r io.Reader, w io.Writer, c common.IClientConn) error {
|
||||
reader := &common.RfbReadHelper{Reader: r}
|
||||
reader := common.NewRfbReadHelper(r)
|
||||
writeTo := &WriteTo{w, "MsgSetColorMapEntries.CopyTo"}
|
||||
reader.Listeners.AddListener(writeTo)
|
||||
_, err := fbm.Read(c, reader)
|
||||
|
Loading…
Reference in New Issue
Block a user