Changeset 9996 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Jun 27, 2008 1:29:37 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 32447
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibVideo.cpp
r9994 r9996 287 287 sizeof(szModeParms), NULL); /** @todo add a VbglR3InfoSvcReadKeyF/FV that does the RTStrPrintf for you. */ 288 288 } 289 /** @todo r=bird: this is kind of ugly.290 * What about just fixing the format as "CXxCYxCBITS" and then split it up into three strings by searching for the291 * two 'x'es. And then apply RTStrToUInt32Full to these in turn.292 * Also, the use of VERR_INVALID_PARAMETER seems inappropriate and confusing here. */293 289 if (RT_SUCCESS(rc)) 294 290 /* Extract the width from the string */ 295 291 rc = RTStrToUInt32Ex(szModeParms, &pszNext, 10, &cx); 296 292 if ((rc != VWRN_TRAILING_CHARS) || (*pszNext != 'x')) 297 rc = VERR_ INVALID_PARAMETER;293 rc = VERR_PARSE_ERROR; 298 294 if (RT_SUCCESS(rc)) 299 295 { … … 302 298 } 303 299 if ((rc != VWRN_TRAILING_CHARS) || (*pszNext != 'x')) 304 rc = VERR_ INVALID_PARAMETER;300 rc = VERR_PARSE_ERROR; 305 301 if (RT_SUCCESS(rc)) 306 302 { … … 309 305 } 310 306 if (rc != VINF_SUCCESS) 311 rc = VERR_ INVALID_PARAMETER;307 rc = VERR_PARSE_ERROR; 312 308 if (u32ClientId != 0) 313 309 VbglR3InfoSvcDisconnect(u32ClientId); /* Return value ignored, because what can we do anyway? */
Note:
See TracChangeset
for help on using the changeset viewer.