VirtualBox

Changeset 36325 in vbox for trunk/src/VBox/RDP


Ignore:
Timestamp:
Mar 21, 2011 1:23:17 PM (14 years ago)
Author:
vboxsync
Message:

RDP/client/vrdp: removed three assertions and added a pointer comment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/RDP/client/vrdp/rdpusb.c

    r36320 r36325  
    229229/** Allocate (and return) a buffer for a device list in VRDP wire format,
    230230 * and populate from a PUSBDEVICE linked list.  @a pLen takes the length of
    231  * the new list. */
     231 * the new list.
     232 * See @a Console::processRemoteUSBDevices for the receiving end. */
    232233static void *buildWireListFromDevices(PUSBDEVICE pDevices, int *pLen)
    233234{
     
    259260                                   + RT_BOOL(pEntry->oSerialNumber),
    260261                         free(pBuf), NULL);
    261         AssertReturnStmt(   pEntry->oManufacturer == 0
    262                          || pBuf[pEntry->oManufacturer] != '\0',
    263                          free(pBuf), NULL);
    264         AssertReturnStmt(   pEntry->oProduct == 0
    265                          || pBuf[pEntry->oProduct] != '\0',
    266                          free(pBuf), NULL);
    267         AssertReturnStmt(   pEntry->oSerialNumber == 0
    268                          || pBuf[pEntry->oSerialNumber] != '\0',
    269                          free(pBuf), NULL);
    270262        AssertReturnStmt(cZeros == 0 || pBuf[iCurrent + iNext - 1] == '\0',
    271263                         free(pBuf), NULL);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette