Changeset 35244 in vbox
- Timestamp:
- Dec 20, 2010 1:46:17 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxService
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp
r35012 r35244 1618 1618 VBoxServiceError("ControlExec: Failed to retrieve exec input command! Error: %Rrc\n", rc); 1619 1619 } 1620 else if ( cbSize <= 0 1621 || cbSize > cbMaxBufSize) 1620 else if (cbSize > cbMaxBufSize) 1622 1621 { 1623 1622 VBoxServiceError("ControlExec: Input size is invalid! cbSize=%u\n", cbSize); … … 1661 1660 if (RT_SUCCESS(rc)) 1662 1661 { 1663 if (cbWritten ) /* Did we write something? */1662 if (cbWritten || !cbSize) /* Did we write something or was there anything to write at all? */ 1664 1663 { 1665 1664 uStatus = INPUT_STS_WRITTEN; -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceToolBox.cpp
r34777 r35244 186 186 { 187 187 rc = RTFileRead(hInput, abBuf, sizeof(abBuf), &cbRead); 188 if (RT_SUCCESS(rc) && cbRead)188 if (RT_SUCCESS(rc)) 189 189 { 190 190 rc = RTFileWrite(hOutput, abBuf, cbRead, NULL /* Try to write all at once! */); … … 193 193 else 194 194 { 195 if ( cbRead == 0 196 && rc == VERR_BROKEN_PIPE) 197 { 195 if (rc == VERR_BROKEN_PIPE) 198 196 rc = VINF_SUCCESS; 199 }200 197 break; 201 198 }
Note:
See TracChangeset
for help on using the changeset viewer.