- Timestamp:
- Jan 4, 2017 2:17:40 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp
r65109 r65113 90 90 abATAPISense[12] = uATAPIASC; 91 91 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 else101 pbDst[i] = ' ';102 }103 92 } 104 93 … … 643 632 * invisible as possible to the guest. */ 644 633 if (cbXferCur >= 8 + 8) 645 drvHostDvdSCSIPadStr((uint8_t *)pvBuf + 8, "VBOX", 8);634 scsiPadStr((uint8_t *)pvBuf + 8, "VBOX", 8); 646 635 if (cbXferCur >= 16 + 16) 647 drvHostDvdSCSIPadStr((uint8_t *)pvBuf + 16, "CD-ROM", 16);636 scsiPadStr((uint8_t *)pvBuf + 16, "CD-ROM", 16); 648 637 if (cbXferCur >= 32 + 4) 649 drvHostDvdSCSIPadStr((uint8_t *)pvBuf + 32, "1.0", 4);638 scsiPadStr((uint8_t *)pvBuf + 32, "1.0", 4); 650 639 } 651 640
Note:
See TracChangeset
for help on using the changeset viewer.