VirtualBox

Changeset 29638 in vbox


Ignore:
Timestamp:
May 18, 2010 1:53:07 PM (15 years ago)
Author:
vboxsync
Message:

Guest Control/Main: Better credentials checking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/GuestImpl.cpp

    r29620 r29638  
    779779    CheckComArgStrNotEmptyOrNull(aCommand);
    780780    CheckComArgOutPointerValid(aPID);
    781     CheckComArgStrNotEmptyOrNull(aUserName); /* Do not allow anonymous executions (with system rights). */
    782781    CheckComArgOutPointerValid(aProgress);
     782
     783    /* Do not allow anonymous executions (with system rights). */
     784    if (RT_UNLIKELY((aUserName) == NULL || *(aUserName) == '\0'))
     785        return setError(E_INVALIDARG, tr("No user name specified"));
    783786
    784787    AutoCaller autoCaller(this);
     
    10461049                {
    10471050                    rc = setError(VBOX_E_IPRT_ERROR,
    1048                                   tr("The operation was canceled."));
     1051                                  tr("The operation was canceled"));
    10491052                }
    10501053            }
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