Changeset 31701 in vbox for trunk/src/VBox/Main/ConsoleImpl2.cpp
- Timestamp:
- Aug 16, 2010 3:14:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r31698 r31701 4238 4238 char **papszNames, **papszValues, **papszFlags; 4239 4239 char szEmpty[] = ""; 4240 ULONG64 *pau64Timestamps;4240 LONG64 *pai64Timestamps; 4241 4241 papszNames = (char **)RTMemTmpAllocZ(sizeof(void *) * cAlloc); 4242 4242 papszValues = (char **)RTMemTmpAllocZ(sizeof(void *) * cAlloc); 4243 pa u64Timestamps = (LONG64 *)RTMemTmpAllocZ(sizeof(ULONG64) * cAlloc);4243 pai64Timestamps = (LONG64 *)RTMemTmpAllocZ(sizeof(LONG64) * cAlloc); 4244 4244 papszFlags = (char **)RTMemTmpAllocZ(sizeof(void *) * cAlloc); 4245 if (papszNames && papszValues && pa u64Timestamps && papszFlags)4245 if (papszNames && papszValues && pai64Timestamps && papszFlags) 4246 4246 { 4247 4247 for (unsigned i = 0; RT_SUCCESS(rc) && i < cProps; ++i) … … 4257 4257 if (RT_FAILURE(rc)) 4258 4258 break; 4259 pa u64Timestamps[i] = timestampsOut[i];4259 pai64Timestamps[i] = timestampsOut[i]; 4260 4260 if (flagsOut[i]) 4261 4261 rc = RTUtf16ToUtf8(flagsOut[i], &papszFlags[i]); … … 4267 4267 (void *)papszNames, 4268 4268 (void *)papszValues, 4269 (void *)pa u64Timestamps,4269 (void *)pai64Timestamps, 4270 4270 (void *)papszFlags); 4271 4271 for (unsigned i = 0; i < cProps; ++i) … … 4282 4282 RTMemTmpFree(papszNames); 4283 4283 RTMemTmpFree(papszValues); 4284 RTMemTmpFree(pa u64Timestamps);4284 RTMemTmpFree(pai64Timestamps); 4285 4285 RTMemTmpFree(papszFlags); 4286 4286 AssertRCReturn(rc, rc);
Note:
See TracChangeset
for help on using the changeset viewer.