VirtualBox

Ignore:
Timestamp:
Nov 19, 2017 12:49:36 PM (7 years ago)
Author:
vboxsync
Message:

Changed RTLogCreateEx[V] to take a RTERRINFO pointer rather than plain char * and size_t. Turned out a several callers didn't actually make use of the error message even.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/win/svcmain.cpp

    r69747 r69749  
    809809        }
    810810
    811         char szError[RTPATH_MAX + 128];
     811        RTERRINFOSTATIC ErrInfo;
    812812        vrc = com::VBoxLogRelCreate("COM Server", pszLogFile,
    813813                                    RTLOGFLAGS_PREFIX_THREAD | RTLOGFLAGS_PREFIX_TIME_PROG,
     
    819819#endif
    820820                                    UINT32_MAX /* cMaxEntriesPerGroup */, cHistory, uHistoryFileTime, uHistoryFileSize,
    821                                     szError, sizeof(szError));
     821                                    RTErrInfoInitStatic(&ErrInfo));
    822822        if (RT_FAILURE(vrc))
    823             return RTMsgErrorExit(RTEXITCODE_FAILURE, "failed to open release log (%s, %Rrc)", szError, vrc);
     823            return RTMsgErrorExit(RTEXITCODE_FAILURE, "failed to open release log (%s, %Rrc)", ErrInfo.Core.pszMsg, vrc);
    824824    }
    825825
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