VirtualBox

Changeset 79863 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Jul 18, 2019 4:44:42 PM (6 years ago)
Author:
vboxsync
Message:

VBoxGuest: Fixed reversed log parameter parsing found by Dmitrii.

File:
1 edited

Legend:

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

    r77728 r79863  
    13891389             || RTStrNICmpAscii(pszName, RT_STR_TUPLE("dbg_log")) == 0)
    13901390    {
    1391         bool const  fLogRel    = *pszName == 'd' || *pszName == 'D';
    1392         const char *pszSubName = &pszName[fLogRel ? 4 + 3 : 3];
     1391        bool const  fDbgRel    = *pszName == 'd' || *pszName == 'D';
     1392        const char *pszSubName = &pszName[fDbgRel ? 4 + 3 : 3];
    13931393        if (   !*pszSubName
    13941394            || RTStrICmpAscii(pszSubName, "_flags") == 0
    13951395            || RTStrICmpAscii(pszSubName, "_dest") == 0)
    13961396        {
    1397             PRTLOGGER pLogger = fLogRel ? RTLogRelGetDefaultInstance() : RTLogDefaultInstance();
     1397            PRTLOGGER pLogger = !fDbgRel ? RTLogRelGetDefaultInstance() : RTLogDefaultInstance();
    13981398            if (pLogger)
    13991399            {
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