VirtualBox

Changeset 94611 in vbox


Ignore:
Timestamp:
Apr 14, 2022 9:56:18 PM (2 years ago)
Author:
vboxsync
Message:

IPRT/log: Fixed RTLogFlush regression from r146496 that caused the log file to be created, contrary to the documented behaviour of the function. bugref:10086

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/log/log.cpp

    r93501 r94611  
    30503050RTDECL(int) RTLogFlush(PRTLOGGER pLogger)
    30513051{
     3052    if (!pLogger)
     3053    {
     3054        pLogger = rtLogGetDefaultInstanceCommon(); /* Get it if it exists, do _not_ create one if it doesn't. */
     3055        if (!pLogger)
     3056            return VINF_LOG_NO_LOGGER;
     3057    }
    30523058    PRTLOGGERINTERNAL pLoggerInt = (PRTLOGGERINTERNAL)pLogger;
    3053     RTLOG_RESOLVE_DEFAULT_RET(pLoggerInt, VINF_LOG_NO_LOGGER);
    30543059    Assert(pLoggerInt->Core.u32Magic == RTLOGGER_MAGIC);
    30553060    AssertPtr(pLoggerInt->pBufDesc);
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