VirtualBox

Ignore:
Timestamp:
Nov 19, 2017 12:49:36 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119149
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/Additions/WINNT/VBoxTray/VBoxTray.cpp

    r69500 r69749  
    559559    fFlags |= RTLOGFLAGS_USECRLF;
    560560#endif
    561     char szError[RTPATH_MAX + 128] = "";
     561    RTERRINFOSTATIC ErrInfo;
    562562    int rc = RTLogCreateEx(&g_pLoggerRelease, fFlags,
    563563#ifdef DEBUG
     
    570570                           RT_ELEMENTS(s_apszGroups), s_apszGroups, RTLOGDEST_STDOUT,
    571571                           vboxTrayLogHeaderFooter, g_cHistory, g_uHistoryFileSize, g_uHistoryFileTime,
    572                            szError, sizeof(szError), pszLogFile);
     572                           RTErrInfoInitStatic(&ErrInfo), pszLogFile);
    573573    if (RT_SUCCESS(rc))
    574574    {
     
    583583    }
    584584    else
    585         MessageBox(GetDesktopWindow(),
    586                    szError, "VBoxTray - Logging Error", MB_OK | MB_ICONERROR);
     585        MessageBoxA(GetDesktopWindow(), ErrInfo.szMsg, "VBoxTray - Logging Error", MB_OK | MB_ICONERROR);
    587586
    588587    return rc;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette