VirtualBox

Changeset 5659 in vbox


Ignore:
Timestamp:
Nov 9, 2007 7:26:17 PM (17 years ago)
Author:
vboxsync
Message:

Main: Fixed SerialPort::COMSETTER(Path) to not accept empty paths (forbidden by the XML Schema).

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

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

    r4339 r5659  
    482482STDMETHODIMP ParallelPort::COMSETTER(Path) (INPTR BSTR aPath)
    483483{
    484     if (!aPath || *aPath == 0)
    485         return E_INVALIDARG;
     484    if (!aPath)
     485        return E_POINTER;
     486
     487    if (!*aPath)
     488        return setError (E_INVALIDARG,
     489            tr ("Parallel port path cannot be empty"));
    486490
    487491    AutoCaller autoCaller (this);
  • trunk/src/VBox/Main/SerialPortImpl.cpp

    r4358 r5659  
    568568{
    569569    if (!aPath)
    570         return E_INVALIDARG;
     570        return E_POINTER;
     571
     572    if (!*aPath)
     573        return setError (E_INVALIDARG,
     574            tr ("Serial port path cannot be empty"));
     575
    571576
    572577    AutoCaller autoCaller (this);
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