VirtualBox

Changeset 105915 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 2, 2024 10:57:45 AM (3 months ago)
Author:
vboxsync
Message:

Additions/VBoxTray: We need to call VbglR3Init() first before setting up our custom logging for VBoxTray, as VbglR3Init() sets up a default release logger [addendum].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp

    r105914 r105915  
    10691069    if (RT_SUCCESS(rc))
    10701070    {
    1071         LogRel(("Verbosity level: %d\n", g_cVerbosity));
    1072 
    10731071        rc = vboxTrayLogCreate(szLogFile[0] ? szLogFile : NULL);
    10741072        if (RT_SUCCESS(rc))
    10751073        {
     1074            LogRel(("Verbosity level: %d\n", g_cVerbosity));
     1075
    10761076            /* Log the major windows NT version: */
    10771077            uint64_t const uNtVersion = RTSystemGetNtVersion();
     
    11421142
    11431143            LogRel(("Ended\n"));
    1144             VbglR3Term();
    1145         }
    1146         else
    1147             LogRel(("VbglR3Init failed: %Rrc\n", rc));
    1148     }
     1144
     1145            vboxTrayLogDestroy();
     1146        }
     1147
     1148        VbglR3Term();
     1149    }
     1150    else
     1151        VBoxTrayShowError("VbglR3Init failed: %Rrc\n", rc);
    11491152
    11501153    /* Release instance mutex. */
     
    11541157        hMutexAppRunning = NULL;
    11551158    }
    1156 
    1157     vboxTrayLogDestroy();
    11581159
    11591160    return RT_SUCCESS(rc) ? RTEXITCODE_SUCCESS : RTEXITCODE_FAILURE;
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