Small bug (I think)

Dec 21, 2010 at 5:45 PM

in addin.cs:

      public void Write(byte[] data, int offset, int count)
        {
            byte[] buff = data;
            if (offset != 0)
            {
                buff = new byte[count];
                Buffer.BlockCopy(data, offset, data, 0, count);
		// should be:
		Buffer.BlockCopy(data, offset, buff, 0, count);

            }
            write.Reset();
            ChannelReturnCodes ret = Client.EntryPoint.VirtualChannelWrite(openChannel, buff, (uint)count, IntPtr.Zero);
            write.WaitOne();
        }
Please confirm if possible. 
Thanks,
Bill
Coordinator
Dec 21, 2010 at 8:02 PM

true, true