VirtualBox

Changeset 36406 in vbox


Ignore:
Timestamp:
Mar 24, 2011 3:59:04 PM (14 years ago)
Author:
vboxsync
Message:

rdesktop-usb: Fixed and restored a previously removed assertion.

File:
1 edited

Legend:

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

    r36325 r36406  
    260260                                   + RT_BOOL(pEntry->oSerialNumber),
    261261                         free(pBuf), NULL);
     262        AssertReturnStmt(   pEntry->oManufacturer == 0
     263                         || pBuf[iCurrent + pEntry->oManufacturer] != '\0',
     264                         free(pBuf), NULL);
     265        AssertReturnStmt(   pEntry->oProduct == 0
     266                         || pBuf[iCurrent + pEntry->oProduct] != '\0',
     267                         free(pBuf), NULL);
     268        AssertReturnStmt(   pEntry->oSerialNumber == 0
     269                         || pBuf[iCurrent + pEntry->oSerialNumber] != '\0',
     270                         free(pBuf), NULL);
    262271        AssertReturnStmt(cZeros == 0 || pBuf[iCurrent + iNext - 1] == '\0',
    263272                         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