VirtualBox

Changeset 12836 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Sep 30, 2008 3:33:20 PM (16 years ago)
Author:
vboxsync
Message:

VMMR0: Fixed va_list reuse bug in AssertMsg2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r12549 r12836  
    11921192    if (pLog)
    11931193    {
    1194         va_list args;
    1195 
    1196         va_start(args, pszFormat);
    1197         RTLogFormatV(rtLogOutput, pLog, pszFormat, args);
     1194        va_list va;
     1195        va_start(va, pszFormat);
     1196        RTLogFormatV(rtLogOutput, pLog, pszFormat, va);
     1197        va_end(va);
     1198
    11981199        PVM pVM = GVMMR0GetVMByEMT(NIL_RTNATIVETHREAD);
    11991200        if (pVM)
    1200             RTStrPrintfV(pVM->vmm.s.szRing0AssertMsg2, sizeof(pVM->vmm.s.szRing0AssertMsg2), pszFormat, args);
    1201         va_end(args);
    1202     }
    1203 }
    1204 
    1205 
     1201        {
     1202            va_start(va, pszFormat);
     1203            RTStrPrintfV(pVM->vmm.s.szRing0AssertMsg2, sizeof(pVM->vmm.s.szRing0AssertMsg2), pszFormat, va);
     1204            va_end(va);
     1205        }
     1206    }
     1207}
     1208
     1209
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