VirtualBox

Changeset 27667 in vbox


Ignore:
Timestamp:
Mar 24, 2010 1:38:19 PM (15 years ago)
Author:
vboxsync
Message:

iprt/RTProcCreateEx: restored assertion removed in r58933 and added a few more.

Location:
trunk/src/VBox/Runtime/r3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/process-posix.cpp

    r27503 r27667  
    9494    /** @todo search the PATH (add flag for this). */
    9595    AssertPtrNullReturn(pszAsUser, VERR_INVALID_POINTER);
     96    AssertReturn(!pszAsUser || *pszAsUser, VERR_INVALID_PARAMETER);
     97    AssertReturn(!pszPassword || pszAsUser, VERR_INVALID_PARAMETER);
     98    AssertPtrNullReturn(pszPassword, VERR_INVALID_POINTER);
    9699
    97100    /*
  • trunk/src/VBox/Runtime/r3/win/process-win.cpp

    r27613 r27667  
    341341    AssertReturn(hEnv != NIL_RTENV, VERR_INVALID_PARAMETER);
    342342    AssertPtrReturn(papszArgs, VERR_INVALID_PARAMETER);
     343    AssertPtrNullReturn(pszAsUser, VERR_INVALID_POINTER);
     344    AssertReturn(!pszAsUser || *pszAsUser, VERR_INVALID_PARAMETER);
     345    AssertReturn(!pszPassword || pszAsUser, VERR_INVALID_PARAMETER);
     346    AssertPtrNullReturn(pszPassword, VERR_INVALID_POINTER);
    343347    /** @todo search the PATH (add flag for this). */
    344348
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