Changeset 75390 in vbox
- Timestamp:
- Nov 12, 2018 8:54:38 AM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp
r75365 r75390 1935 1935 else if (!strcmp(a->argv[2], "filename")) 1936 1936 { 1937 if (a->argc != 3)1937 if (a->argc != 4) 1938 1938 { 1939 1939 errorSyntax(USAGE_CONTROLVM, "Incorrect number of parameters"); … … 1943 1943 1944 1944 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 1945 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(FileName)(Bstr(a->argv[ 2]).raw()));1945 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(FileName)(Bstr(a->argv[3]).raw())); 1946 1946 } 1947 1947 else if ( !strcmp(a->argv[2], "videores") … … 1955 1955 } 1956 1956 1957 uint32_t u Val;1958 int vrc = RTStrToUInt32Ex(a->argv[3], NULL, 0, &u Val);1957 uint32_t uWidth; 1958 int vrc = RTStrToUInt32Ex(a->argv[3], NULL, 0, &uWidth); 1959 1959 if (RT_FAILURE(vrc)) 1960 1960 { 1961 errorArgument("Error parsing width '%s'", a->argv[3]); 1962 rc = E_FAIL; 1963 break; 1964 } 1965 1966 vrc = RTStrToUInt32Ex(a->argv[4], NULL, 0, &uVal); 1961 errorArgument("Error parsing video width '%s'", a->argv[3]); 1962 rc = E_FAIL; 1963 break; 1964 } 1965 1966 uint32_t uHeight; 1967 vrc = RTStrToUInt32Ex(a->argv[4], NULL, 0, &uHeight); 1967 1968 if (RT_FAILURE(vrc)) 1968 1969 { 1969 errorArgument("Error parsing height '%s'", a->argv[4]);1970 errorArgument("Error parsing video height '%s'", a->argv[4]); 1970 1971 rc = E_FAIL; 1971 1972 break; … … 1974 1975 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 1975 1976 { 1976 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(VideoWidth)(u Val));1977 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(VideoHeight)(u Val));1977 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(VideoWidth)(uWidth)); 1978 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(VideoHeight)(uHeight)); 1978 1979 } 1979 1980 } … … 1987 1988 } 1988 1989 1989 uint32_t u Val;1990 int vrc = RTStrToUInt32Ex(a->argv[3], NULL, 0, &u Val);1990 uint32_t uRate; 1991 int vrc = RTStrToUInt32Ex(a->argv[3], NULL, 0, &uRate); 1991 1992 if (RT_FAILURE(vrc)) 1992 1993 { 1993 errorArgument("Error parsing rate '%s'", a->argv[3]);1994 errorArgument("Error parsing video rate '%s'", a->argv[3]); 1994 1995 rc = E_FAIL; 1995 1996 break; … … 1997 1998 1998 1999 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 1999 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(VideoRate)(u Val));2000 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(VideoRate)(uRate)); 2000 2001 } 2001 2002 else if (!strcmp(a->argv[2], "videofps")) … … 2008 2009 } 2009 2010 2010 uint32_t u Val;2011 int vrc = RTStrToUInt32Ex(a->argv[3], NULL, 0, &u Val);2011 uint32_t uFPS; 2012 int vrc = RTStrToUInt32Ex(a->argv[3], NULL, 0, &uFPS); 2012 2013 if (RT_FAILURE(vrc)) 2013 2014 { 2014 errorArgument("Error parsing FPS '%s'", a->argv[3]);2015 errorArgument("Error parsing video FPS '%s'", a->argv[3]); 2015 2016 rc = E_FAIL; 2016 2017 break; … … 2018 2019 2019 2020 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 2020 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(VideoFPS)(u Val));2021 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(VideoFPS)(uFPS)); 2021 2022 } 2022 2023 else if (!strcmp(a->argv[2], "maxtime")) … … 2029 2030 } 2030 2031 2031 uint32_t u Val;2032 int vrc = RTStrToUInt32Ex(a->argv[3], NULL, 0, &u Val);2032 uint32_t uMaxTime; 2033 int vrc = RTStrToUInt32Ex(a->argv[3], NULL, 0, &uMaxTime); 2033 2034 if (RT_FAILURE(vrc)) 2034 2035 { … … 2039 2040 2040 2041 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 2041 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(MaxTime)(u Val));2042 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(MaxTime)(uMaxTime)); 2042 2043 } 2043 2044 else if (!strcmp(a->argv[2], "maxfilesize")) … … 2050 2051 } 2051 2052 2052 uint32_t u Val;2053 int vrc = RTStrToUInt32Ex(a->argv[3], NULL, 0, &u Val);2053 uint32_t uMaxFileSize; 2054 int vrc = RTStrToUInt32Ex(a->argv[3], NULL, 0, &uMaxFileSize); 2054 2055 if (RT_FAILURE(vrc)) 2055 2056 { … … 2060 2061 2061 2062 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 2062 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(MaxFileSize)(u Val));2063 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(MaxFileSize)(uMaxFileSize)); 2063 2064 } 2064 2065 else if (!strcmp(a->argv[2], "opts")) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r75365 r75390 3022 3022 if (RT_FAILURE(vrc) || vrc != VWRN_TRAILING_CHARS || !pszNext || *pszNext != 'x') 3023 3023 { 3024 errorArgument("Error parsing geomtry'%s' (expected <width>x<height>)", ValueUnion.psz);3024 errorArgument("Error parsing video resolution '%s' (expected <width>x<height>)", ValueUnion.psz); 3025 3025 rc = E_FAIL; 3026 3026 break; … … 3030 3030 if (vrc != VINF_SUCCESS) 3031 3031 { 3032 errorArgument("Error parsing geomtry'%s' (expected <width>x<height>)", ValueUnion.psz);3032 errorArgument("Error parsing video resolution '%s' (expected <width>x<height>)", ValueUnion.psz); 3033 3033 rc = E_FAIL; 3034 3034 break;
Note:
See TracChangeset
for help on using the changeset viewer.