VirtualBox

Changeset 26602 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Feb 17, 2010 11:57:48 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57795
Message:

Main: Bstr crash fix on Windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/PerformanceImpl.cpp

    r26186 r26602  
    3838#include "Performance.h"
    3939
    40 static Bstr gMetricNames[] =
     40static const char *g_papcszMetricNames[] =
    4141{
    4242    "CPU/Load/User",
     
    178178    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    179179
    180     com::SafeArray<BSTR> metricNames(RT_ELEMENTS(gMetricNames));
    181     for (size_t i = 0; i < RT_ELEMENTS(gMetricNames); i++)
     180    com::SafeArray<BSTR> metricNames(RT_ELEMENTS(g_papcszMetricNames));
     181    for (size_t i = 0; i < RT_ELEMENTS(g_papcszMetricNames); i++)
    182182    {
    183         Bstr tmp(gMetricNames[i]); /* gcc-3.3 cruft */
     183        Bstr tmp(g_papcszMetricNames[i]); /* gcc-3.3 cruft */
    184184        tmp.cloneTo(&metricNames[i]);
    185185    }
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