In the present tools code, for few commands (like Hgfs packets),
the reply size is not sent correctly back to the VMX. An extra 4 bytes
is added to the reply size. We really don't require the extra 4 bytes.
Modified the code to get rid of the extra 4 bytes.
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
if ((NULL != requestMsg)
&& (requestMsg->commonHeader.commonFlags & VIX_COMMAND_GUEST_RETURNS_BINARY)) {
*(destPtr++) = '#';
- data->resultLen = destPtr - tcloBuffer + sizeof '#' + resultValueLength;
+ data->resultLen = destPtr - tcloBuffer + resultValueLength;
}
/*