|
@@ -99,7 +99,7 @@ int vmnet_write_message(const char *buffer, int length) {
|
|
const int maximumSplitPacketSize = VMP_STRBUF_LEN - 1;
|
|
const int maximumSplitPacketSize = VMP_STRBUF_LEN - 1;
|
|
do {
|
|
do {
|
|
int currentSplitSize = MIN(length - packetOffset, maximumSplitPacketSize);
|
|
int currentSplitSize = MIN(length - packetOffset, maximumSplitPacketSize);
|
|
- bool hasNext = packetOffset + currentSplitSize >= length;
|
|
|
|
|
|
+ bool hasNext = packetOffset + currentSplitSize < length;
|
|
tx_command tx = {
|
|
tx_command tx = {
|
|
.type = tx_command_type_vmnet,
|
|
.type = tx_command_type_vmnet,
|
|
.tid = hasNext ? 21 : 22,
|
|
.tid = hasNext ? 21 : 22,
|