VirtualBox

Changeset 65113 in vbox for trunk/src


Ignore:
Timestamp:
Jan 4, 2017 2:17:40 PM (8 years ago)
Author:
vboxsync
Message:

Devices/Storage/DrvHostDVD: Missed replacing drvHostDvdSCSIPadStr with scsiPadStr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp

    r65109 r65113  
    9090    abATAPISense[12] = uATAPIASC;
    9191    return drvHostDvdCmdError(pThis, abATAPISense, sizeof(abATAPISense));
    92 }
    93 
    94 static void drvHostDvdSCSIPadStr(uint8_t *pbDst, const char *pbSrc, uint32_t cbSize)
    95 {
    96     for (uint32_t i = 0; i < cbSize; i++)
    97     {
    98         if (*pbSrc)
    99             pbDst[i] = *pbSrc++;
    100         else
    101             pbDst[i] = ' ';
    102     }
    10392}
    10493
     
    643632                     *             invisible as possible to the guest. */
    644633                    if (cbXferCur >= 8 + 8)
    645                         drvHostDvdSCSIPadStr((uint8_t *)pvBuf + 8, "VBOX", 8);
     634                        scsiPadStr((uint8_t *)pvBuf + 8, "VBOX", 8);
    646635                    if (cbXferCur >= 16 + 16)
    647                         drvHostDvdSCSIPadStr((uint8_t *)pvBuf + 16, "CD-ROM", 16);
     636                        scsiPadStr((uint8_t *)pvBuf + 16, "CD-ROM", 16);
    648637                    if (cbXferCur >= 32 + 4)
    649                         drvHostDvdSCSIPadStr((uint8_t *)pvBuf + 32, "1.0", 4);
     638                        scsiPadStr((uint8_t *)pvBuf + 32, "1.0", 4);
    650639                }
    651640
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