commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1197901 - /commons/proper/daemon/trunk/src/native/windows/src/cmdline.c
Date Sat, 05 Nov 2011 08:45:12 GMT
Author: mturk
Date: Sat Nov  5 08:45:12 2011
New Revision: 1197901

URL: http://svn.apache.org/viewvc?rev=1197901&view=rev
Log:
Break both on -foo and +foo

Modified:
    commons/proper/daemon/trunk/src/native/windows/src/cmdline.c

Modified: commons/proper/daemon/trunk/src/native/windows/src/cmdline.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/windows/src/cmdline.c?rev=1197901&r1=1197900&r2=1197901&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/windows/src/cmdline.c (original)
+++ commons/proper/daemon/trunk/src/native/windows/src/cmdline.c Sat Nov  5 08:45:12 2011
@@ -142,7 +142,7 @@ LPAPXCMDLINE apxCmdlineParse(
         }
     }
     if (lpszAltcmds && _st_sys_argc > 1 && lstrlenW(_st_sys_argvw[1])
> 2 &&
-        _st_sys_argvw[1][0] != L'-') {
+        !(_st_sys_argvw[1][0] == L'-' || _st_sys_argvw[1][0] == L'+')) {
         LPWSTR ca = _st_sys_argvw[1];
         i = 0;
         while (lpszAltcmds[i]) {
@@ -153,7 +153,8 @@ LPAPXCMDLINE apxCmdlineParse(
         }
         if (lpCmdline->dwCmdIndex) {
             s = 2;
-            if (_st_sys_argc > 2 && _st_sys_argvw[2][0] != L'-') {
+            if (_st_sys_argc > 2 && !(_st_sys_argvw[2][0] == L'-' ||
+                                      _st_sys_argvw[2][0] == L'+')) {
                 s++;
                 lpCmdline->szApplication = _st_sys_argvw[2];
             }



Mime
View raw message