VirtualBox

Changeset 37605 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Jun 23, 2011 8:54:57 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72451
Message:

duh.

File:
1 edited

Legend:

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

    r37596 r37605  
    443443    offInternal = RT_OFFSETOF(RTLOGGER, afGroups[cGroups]);
    444444    offInternal = RT_ALIGN_Z(offInternal, sizeof(uint64_t));
    445     cbLogger = offInternal;
     445    cbLogger = offInternal + sizeof(RTLOGGERINTERNAL);
    446446    if (fFlags & RTLOGFLAGS_RESTRICT_GROUPS)
    447447        cbLogger += cGroups * sizeof(uint32_t);
    448     pLogger = (PRTLOGGER)RTMemAllocZVar(offInternal + sizeof(RTLOGGERINTERNAL));
     448    pLogger = (PRTLOGGER)RTMemAllocZVar(cbLogger);
    449449    if (pLogger)
    450450    {
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