Changeset 9994 in vbox
- Timestamp:
- Jun 27, 2008 1:16:26 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 32445
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibVideo.cpp
r9920 r9994 294 294 /* Extract the width from the string */ 295 295 rc = RTStrToUInt32Ex(szModeParms, &pszNext, 10, &cx); 296 if ( (VWRN_NUMBER_TOO_BIG == rc) 297 || (VWRN_NEGATIVE_UNSIGNED == rc) 298 || (RT_SUCCESS(rc) && (*pszNext != ',') && (*pszNext != 'x'))) 296 if ((rc != VWRN_TRAILING_CHARS) || (*pszNext != 'x')) 299 297 rc = VERR_INVALID_PARAMETER; 300 298 if (RT_SUCCESS(rc)) 301 299 { 302 if ((*pszNext != ',') || (*pszNext != 'x')) 303 ++pszNext; 304 for (;' ' == *pszNext; ++pszNext); 300 ++pszNext; 305 301 rc = RTStrToUInt32Ex(pszNext, &pszNext, 10, &cy); 306 302 } 307 if ( (VWRN_NUMBER_TOO_BIG == rc) 308 || (VWRN_NEGATIVE_UNSIGNED == rc) 309 || (RT_SUCCESS(rc) && (*pszNext != ',') && (*pszNext != 'x'))) 303 if ((rc != VWRN_TRAILING_CHARS) || (*pszNext != 'x')) 310 304 rc = VERR_INVALID_PARAMETER; 311 305 if (RT_SUCCESS(rc)) 312 306 { 313 if ((*pszNext != ',') || (*pszNext != 'x')) 314 ++pszNext; 315 for (;' ' == *pszNext; ++pszNext); 316 rc = RTStrToUInt32Ex(pszNext, &pszNext, 10, &cBits); 317 } 318 if ( (VWRN_NUMBER_TOO_BIG == rc) 319 || (VWRN_NEGATIVE_UNSIGNED == rc) 320 || (VWRN_TRAILING_CHARS == rc)) 307 ++pszNext; 308 rc = RTStrToUInt32Full(pszNext, 10, &cBits); 309 } 310 if (rc != VINF_SUCCESS) 321 311 rc = VERR_INVALID_PARAMETER; 322 312 if (u32ClientId != 0)
Note:
See TracChangeset
for help on using the changeset viewer.