Changeset 13293 in vbox for trunk/src/VBox/Main
- Timestamp:
- Oct 15, 2008 4:19:36 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r13165 r13293 4494 4494 char szPropFlags[MAX_FLAGS_LEN + 1]; 4495 4495 ULONG64 u64Timestamp = 0; /* default */ 4496 szPropFlags[0] = '\0'; /* default */4497 4496 vrc = CFGMR3GetValueName (pValue, szPropName, sizeof(szPropName)); 4498 4497 if (RT_SUCCESS(vrc)) … … 4500 4499 if (RT_SUCCESS(vrc)) 4501 4500 { 4502 CFGMR3QueryString (pFlags, szPropName, szPropFlags, sizeof(szPropFlags)); 4501 uint32_t fFlags; 4502 CFGMR3QueryU32 (pFlags, szPropName, &fFlags); 4503 writeFlags(fFlags, szPropFlags); 4503 4504 CFGMR3QueryU64 (pTimestamps, szPropName, &u64Timestamp); 4504 4505 Bstr(szPropName).cloneTo(&names[iProp]); -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r13286 r13293 1813 1813 for (size_t i = 0; i < cProps; ++i) 1814 1814 { 1815 rc = CFGMR3InsertString(pValues, Utf8Str(names[i]).raw(), Utf8Str(values[i]).raw()); RC_CHECK(); 1816 rc = CFGMR3InsertInteger(pTimestamps, Utf8Str(names[i]).raw(), timestamps[i]); RC_CHECK(); 1817 rc = CFGMR3InsertString(pFlags, Utf8Str(names[i]).raw(), Utf8Str(flags[i]).raw()); RC_CHECK(); 1815 rc = CFGMR3InsertString(pValues, Utf8Str(names[i]).raw(), Utf8Str(values[i]).raw()); RC_CHECK(); 1816 rc = CFGMR3InsertInteger(pTimestamps, Utf8Str(names[i]).raw(), timestamps[i]); RC_CHECK(); 1817 uint32_t fFlags; 1818 rc = guestProp::validateFlags(Utf8Str(flags[i]).raw(), &fFlags); 1819 AssertLogRelRCReturn(rc, VMSetError(pVM, VERR_INVALID_PARAMETER, RT_SRC_POS, 1820 N_("Guest property '%lS' has invalid flags '%lS' in machine definition file"), 1821 names[i], flags[i])); 1822 rc = CFGMR3InsertInteger(pFlags, Utf8Str(names[i]).raw(), fFlags); RC_CHECK(); 1818 1823 } 1819 1824 -
trunk/src/VBox/Main/MachineImpl.cpp
r13221 r13293 2804 2804 return E_INVALIDARG; 2805 2805 2806 /* For now there are no valid flags, so check this. */2807 if (aFlags != NULL)2808 for (size_t i = 0; aFlags[i] != '\0'; ++i)2809 if (aFlags[i] != ' ')2810 return E_INVALIDARG;2811 2812 2806 AutoCaller autoCaller (this); 2813 2807 CheckComRCReturnRC (autoCaller.rc());
Note:
See TracChangeset
for help on using the changeset viewer.