VirtualBox

Changeset 38808 in vbox


Ignore:
Timestamp:
Sep 20, 2011 3:36:13 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74103
Message:

BIOS: Properly pad disk type strings.

Location:
trunk/src/VBox/Devices/PC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/BIOS-new/disk.c

    r38706 r38808  
    574574                dpt->host_bus[1] = 'S';
    575575                dpt->host_bus[2] = 'A';
    576                 dpt->host_bus[3] = 0;
     576                dpt->host_bus[3] = ' ';
    577577            }
    578578            else {
     
    582582            dpt->iface_type[1] = 'T';
    583583            dpt->iface_type[2] = 'A';
    584             dpt->iface_type[3] = 0;
     584            dpt->iface_type[3] = ' ';
     585            dpt->iface_type[4] = ' ';
     586            dpt->iface_type[5] = ' ';
     587            dpt->iface_type[6] = ' ';
     588            dpt->iface_type[7] = ' ';
    585589           
    586590            if (iface == ATA_IFACE_ISA) {
  • trunk/src/VBox/Devices/PC/BIOS/rombios.c

    r38544 r38808  
    59755975          write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[1], 'S');
    59765976          write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[2], 'A');
    5977           write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[3], 0);
     5977          write_byte(DS, SI+(Bit16u)&Int13DPT->host_bus[3], ' ');
    59785978          }
    59795979        else {
     
    59835983        write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[1], 'T');
    59845984        write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[2], 'A');
    5985         write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[3], 0);
     5985        write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[3], ' ');
     5986        write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[4], ' ');
     5987        write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[5], ' ');
     5988        write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[6], ' ');
     5989        write_byte(DS, SI+(Bit16u)&Int13DPT->iface_type[7], ' ');
    59865990
    59875991        if (iface==ATA_IFACE_ISA) {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette