VirtualBox

Changeset 94525 in vbox for trunk


Ignore:
Timestamp:
Apr 8, 2022 8:14:57 AM (3 years ago)
Author:
vboxsync
Message:

Validation Kit/unit tests: Simplified txsDoCopyFile() a bit. ​​bugref:10195

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/TestExecServ/TestExecService.cpp

    r93895 r94525  
    10241024        return txsReplyBadMinSize(pPktHdr, cbMin);
    10251025
    1026     RTFMODE const fMode = *(RTFMODE const *)(pPktHdr + 1);
     1026    /* Packet cursor. */
     1027    const char *pch = (const char *)(pPktHdr + 1);
    10271028
    10281029    int rc;
    10291030
    1030     char       *pszSrc;
    1031     const char *pch;
    1032     if (txsIsStringValid(pPktHdr, "source", (const char *)(pPktHdr + 1) + sizeof(uint32_t) * 2, &pszSrc, &pch, &rc))
     1031    RTFMODE const fMode = *(RTFMODE const *)pch;
     1032
     1033    char *pszSrc;
     1034    if (txsIsStringValid(pPktHdr, "source", (const char *)pch + sizeof(RTFMODE), &pszSrc, &pch, &rc))
    10331035    {
    10341036        char *pszDst;
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