VirtualBox

Changeset 6137 in vbox


Ignore:
Timestamp:
Dec 18, 2007 5:10:04 PM (17 years ago)
Author:
vboxsync
Message:

Use RTStrICmp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp

    r6136 r6137  
    273273                if (cch > sizeof("enable-") && !memcmp(psz, "enable-", sizeof("enable-") - 1))
    274274                    for (unsigned j = 0; !fFound && j < RT_ELEMENTS(g_aServices); j++)
    275 #if defined(RT_OS_OS2)
    276                         if ((fFound = !stricmp(psz + sizeof("enable-") - 1, g_aServices[j].pDesc->pszName)))
    277 #else
    278                         if ((fFound = !strcasecmp(psz + sizeof("enable-") - 1, g_aServices[j].pDesc->pszName)))
    279 #endif
     275                        if ((fFound = !RTStrICmp(psz + sizeof("enable-") - 1, g_aServices[j].pDesc->pszName)))
    280276                            g_aServices[j].fEnabled = true;
    281277
    282278                if (cch > sizeof("disable-") && !memcmp(psz, "disable-", sizeof("disable-") - 1))
    283279                    for (unsigned j = 0; !fFound && j < RT_ELEMENTS(g_aServices); j++)
    284 #if defined(RT_OS_OS2)
    285                         if ((fFound = !stricmp(psz + sizeof("disable-") - 1, g_aServices[j].pDesc->pszName)))
    286 #else
    287                         if ((fFound = !strcasecmp(psz + sizeof("disable-") - 1, g_aServices[j].pDesc->pszName)))
    288 #endif
     280                        if ((fFound = !RTStrICmp(psz + sizeof("disable-") - 1, g_aServices[j].pDesc->pszName)))
    289281                            g_aServices[j].fEnabled = false;
    290282
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