VirtualBox

Changeset 11856 in vbox for trunk/src/VBox/Main/darwin


Ignore:
Timestamp:
Aug 29, 2008 11:24:22 PM (16 years ago)
Author:
vboxsync
Message:

Main/iokit: Fix for missing AirPort/Wireless in the string. ConsoleImpl2.cpp requires this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/darwin/iokit.cpp

    r11822 r11856  
    15141514                        *psz++ = ':';
    15151515                        *psz++ = ' ';
    1516                         size_t cchLeft = sizeof(szTmp) - (psz - &szTmp[0]);
     1516                        size_t cchLeft = sizeof(szTmp) - (psz - &szTmp[0]) - (sizeof(" (Wireless)") - 1);
    15171517                        CFIndex i;
    15181518                        for (i = 0; i < cIfs; i++)
     
    15361536                                        fUSB ? "USB " : "",
    15371537                                        fWireless ? fAirPort ? "AirPort " : "Wireless" : "Ethernet");
     1538                        /* If we did find it and it's wireless but without "AirPort" or "Wireless", fix it */
     1539                        else if (   fWireless
     1540                                 && !strstr(szTmp, "AirPort")
     1541                                 && !strstr(szTmp, "Wireless"))
     1542                            strcat(szTmp, " (Wireless)");
    15381543
    15391544                        /*
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