Changeset 14620 in vbox
- Timestamp:
- Nov 26, 2008 9:13:11 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r14619 r14620 204 204 205 205 Action mAction; 206 ULONGmIndex;206 uint32_t mIndex; 207 207 /** flag whether the command target is a global filter */ 208 208 bool mGlobal; … … 5490 5490 com::SafeArray<BSTR> baseMetrics; 5491 5491 com::SafeIfaceArray<IUnknown> objects; 5492 ULONGperiod = 1, samples = 1;5492 uint32_t period = 1, samples = 1; 5493 5493 bool listMatches = false; 5494 5494 int i; … … 5500 5500 if (argc <= i + 1) 5501 5501 return errorArgument("Missing argument to '%s'", argv[i]); 5502 char *endptr = NULL;5503 5502 if ( VINF_SUCCESS != RTStrToUInt32Full(argv[++i], 10, &period) 5504 5503 || !period) … … 5509 5508 if (argc <= i + 1) 5510 5509 return errorArgument("Missing argument to '%s'", argv[i]); 5511 char *endptr = NULL;5512 5510 if (VINF_SUCCESS != RTStrToUInt32Full(argv[++i], 10, &samples)) 5513 if (!endptr || *endptr)5514 5511 return errorArgument("Invalid value for 'samples' parameter: '%s'", argv[i]); 5515 5512 } … … 5658 5655 com::SafeArray<BSTR> baseMetrics; 5659 5656 com::SafeIfaceArray<IUnknown> objects; 5660 ULONGperiod = 1, samples = 1;5657 uint32_t period = 1, samples = 1; 5661 5658 bool isDetached = false, listMatches = false; 5662 5659 int i; … … 5667 5664 if (argc <= i + 1) 5668 5665 return errorArgument("Missing argument to '%s'", argv[i]); 5669 char *endptr = NULL;5670 5666 if ( VINF_SUCCESS != RTStrToUInt32Full(argv[++i], 10, &period) 5671 5667 || !period) … … 5676 5672 if (argc <= i + 1) 5677 5673 return errorArgument("Missing argument to '%s'", argv[i]); 5678 char *endptr = NULL;5679 5674 if ( VINF_SUCCESS != RTStrToUInt32Full(argv[++i], 10, &samples) 5680 5675 || !samples)
Note:
See TracChangeset
for help on using the changeset viewer.