From: VMware, Inc <> Date: Mon, 26 Jul 2010 19:25:29 +0000 (-0700) Subject: Fixing probelms with legacy guests. X-Git-Tag: 2010.07.25-280253~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=406d631c991ec4ce2d2d192499f63f85ec5a28f0;p=thirdparty%2Fopen-vm-tools.git Fixing probelms with legacy guests. Making sure that accurate packet length is returned to the guest. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/lib/hgfsServer/hgfsServer.c b/open-vm-tools/lib/hgfsServer/hgfsServer.c index f3dbbaa47..fcdd22b87 100644 --- a/open-vm-tools/lib/hgfsServer/hgfsServer.c +++ b/open-vm-tools/lib/hgfsServer/hgfsServer.c @@ -3455,6 +3455,7 @@ HgfsPacketSend(HgfsPacket *packet, // IN/OUT: Hgfs Packet ASSERT(session); if (session->state == HGFS_SESSION_STATE_OPEN) { + packet->replyPacketSize = packetOutLen; #ifndef VMX86_TOOLS ASSERT(session->type == HGFS_SESSION_TYPE_REGULAR); result = session->channelCbTable->send(session->transportData,