Changeset 22567 in vbox
- Timestamp:
- Aug 28, 2009 7:55:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r22562 r22567 2844 2844 std::vector<const char *> names, values, flags; 2845 2845 std::vector<ULONG64> timestamps; 2846 for (unsigned i = 0; i < cProps ; ++i)2846 for (unsigned i = 0; i < cProps && RT_SUCCESS(rc); ++i) 2847 2847 { 2848 2848 AssertPtrReturn(namesOut[i], VERR_INVALID_PARAMETER); 2849 2849 utf8Names.push_back(Bstr(namesOut[i])); 2850 names.push_back(utf8Names.back().c_str()); 2850 utf8Values.push_back(Bstr(valuesOut[i])); 2851 timestamps.push_back(timestampsOut[i]); 2852 utf8Flags.push_back(Bstr(flagsOut[i])); 2853 } 2854 for (unsigned i = 0; i < cProps && RT_SUCCESS(rc); ++i) 2855 { 2856 names.push_back(utf8Names[i].c_str()); 2851 2857 AssertPtrReturn(names[i], VERR_NO_MEMORY); 2852 2858 if (valuesOut[i]) 2853 { 2854 utf8Values.push_back(Bstr(valuesOut[i])); 2855 values.push_back(utf8Values.back().c_str()); 2856 } 2859 values.push_back(utf8Values[i].c_str()); 2857 2860 else 2858 2861 values.push_back(""); 2859 2862 AssertPtrReturn(values[i], VERR_NO_MEMORY); 2860 timestamps.push_back(timestampsOut[i]);2861 2863 if (flagsOut[i]) 2862 { 2863 utf8Flags.push_back(Bstr(flagsOut[i])); 2864 flags.push_back(utf8Flags.back().c_str()); 2865 } 2864 flags.push_back(utf8Flags[i].c_str()); 2866 2865 else 2867 2866 flags.push_back("");
Note:
See TracChangeset
for help on using the changeset viewer.