VirtualBox

Changeset 56579 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Jun 22, 2015 4:08:08 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
101206
Message:

Storage/ATA: fixed returned device strings from INQUIRY command (were byte swapped) caused by r101000

File:
1 edited

Legend:

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

    r56413 r56579  
    22222222                 *             invisible as possible to the guest. */
    22232223                Log3(("ATAPI PT inquiry data before (%d): %.*Rhxs\n", cbTransfer, cbTransfer, s->CTX_SUFF(pbIOBuffer)));
    2224                 ataR3PadString(s->CTX_SUFF(pbIOBuffer) + 8, "VBOX", 8);
    2225                 ataR3PadString(s->CTX_SUFF(pbIOBuffer) + 16, "CD-ROM", 16);
    2226                 ataR3PadString(s->CTX_SUFF(pbIOBuffer) + 32, "1.0", 4);
     2224                ataR3SCSIPadStr(s->CTX_SUFF(pbIOBuffer) + 8, "VBOX", 8);
     2225                ataR3SCSIPadStr(s->CTX_SUFF(pbIOBuffer) + 16, "CD-ROM", 16);
     2226                ataR3SCSIPadStr(s->CTX_SUFF(pbIOBuffer) + 32, "1.0", 4);
    22272227            }
    22282228
     
    27792779    pbBuf[6] = 0; /* reserved */
    27802780    pbBuf[7] = 0; /* reserved */
    2781     ataR3PadString(pbBuf + 8, s->szInquiryVendorId, 8);
    2782     ataR3PadString(pbBuf + 16, s->szInquiryProductId, 16);
    2783     ataR3PadString(pbBuf + 32, s->szInquiryRevision, 4);
     2781    ataR3SCSIPadStr(pbBuf + 8, s->szInquiryVendorId, 8);
     2782    ataR3SCSIPadStr(pbBuf + 16, s->szInquiryProductId, 16);
     2783    ataR3SCSIPadStr(pbBuf + 32, s->szInquiryRevision, 4);
    27842784    s->iSourceSink = ATAFN_SS_NULL;
    27852785    atapiR3CmdOK(s);
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