Skip to content
This repository has been archived by the owner on Feb 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #77 from baiyies/main
Browse files Browse the repository at this point in the history
fix remote desktop bug
  • Loading branch information
qwqdanchun authored Jan 12, 2022
2 parents d41472c + 86efd08 commit 26039b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Server/Handle Packet/HandleRemoteDesktop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ public void Capture(Clients client, MsgPack unpack_msgpack)
byte[] RdpStream = unpack_msgpack.ForcePathObject("Stream").GetAsBytes();
lock (RD.syncPicbox)
{
using (MemoryStream stream = new MemoryStream(RdpStream))
RD.GetImage = RD.decoder.DecodeData(stream);
using (MemoryStream stream = new MemoryStream(RdpStream)){
var StreamDecodeData = RD.decoder.DecodeData(stream);
RD.GetImage = StreamDecodeData;
RD.rdSize = StreamDecodeData.Size;
}

RD.pictureBox1.Image = RD.GetImage;
RD.FPS++;
Expand Down

0 comments on commit 26039b6

Please sign in to comment.