VirtualBox

Changeset 9996 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Jun 27, 2008 1:29:37 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
32447
Message:

Additions/common: fixed some error codes in VBoxGuestR3LibVideo.cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibVideo.cpp

    r9994 r9996  
    287287                                  sizeof(szModeParms), NULL); /** @todo add a VbglR3InfoSvcReadKeyF/FV that does the RTStrPrintf for you. */
    288288    }
    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 the
    291  * two 'x'es. And then apply RTStrToUInt32Full to these in turn.
    292  * Also, the use of VERR_INVALID_PARAMETER seems inappropriate and confusing here. */
    293289    if (RT_SUCCESS(rc))
    294290        /* Extract the width from the string */
    295291        rc = RTStrToUInt32Ex(szModeParms, &pszNext, 10, &cx);
    296292    if ((rc != VWRN_TRAILING_CHARS) || (*pszNext != 'x'))
    297         rc = VERR_INVALID_PARAMETER;
     293        rc = VERR_PARSE_ERROR;
    298294    if (RT_SUCCESS(rc))
    299295    {
     
    302298    }
    303299    if ((rc != VWRN_TRAILING_CHARS) || (*pszNext != 'x'))
    304         rc = VERR_INVALID_PARAMETER;
     300        rc = VERR_PARSE_ERROR;
    305301    if (RT_SUCCESS(rc))
    306302    {
     
    309305    }
    310306    if (rc != VINF_SUCCESS)
    311         rc = VERR_INVALID_PARAMETER;
     307        rc = VERR_PARSE_ERROR;
    312308    if (u32ClientId != 0)
    313309        VbglR3InfoSvcDisconnect(u32ClientId);  /* Return value ignored, because what can we do anyway? */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette