- Timestamp:
- Feb 24, 2009 5:31:56 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/getopt.cpp
r17082 r17083 59 59 bool fShort = ( *pszArgThis == '-' 60 60 && (uint32_t)pszArgThis[1] == paOptions[i].uShort 61 61 ); 62 62 63 63 if ((paOptions[i].fFlags & RTGETOPT_REQ_MASK) != RTGETOPT_REQ_NOTHING) … … 77 77 || pszArgThis[cchLong] == '=') 78 78 ) 79 79 || fShort 80 80 ) 81 81 { … … 87 87 const char *pszValue; 88 88 if ( fShort 89 ?pszArgThis[2] == '\0'89 ? pszArgThis[2] == '\0' 90 90 || ((pszArgThis[2] == ':' || pszArgThis[2] == '=') && pszArgThis[3] == '\0') 91 :pszArgThis[cchLong] == '\0' || pszArgThis[cchLong + 1] == '\0')91 : pszArgThis[cchLong] == '\0' || pszArgThis[cchLong + 1] == '\0') 92 92 { 93 93 if (iThis + 1 >= argc)
Note:
See TracChangeset
for help on using the changeset viewer.