You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by mt...@apache.org on 2004/08/10 13:14:11 UTC

cvs commit: jakarta-commons/daemon/src/native/nt/procrun/src cmdline.c

mturk       2004/08/10 04:14:11

  Modified:    daemon/src/native/nt/procrun/src cmdline.c
  Log:
  Do not use apxStrtoUl. It expects the hexadecimal entry.
  
  Revision  Changes    Path
  1.2       +1 -2      jakarta-commons/daemon/src/native/nt/procrun/src/cmdline.c
  
  Index: cmdline.c
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/daemon/src/native/nt/procrun/src/cmdline.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- cmdline.c	7 Apr 2004 11:24:47 -0000	1.1
  +++ cmdline.c	10 Aug 2004 11:14:11 -0000	1.2
  @@ -161,7 +161,7 @@
                   if (lpOptions[l].dwType & APXCMDOPT_STR)
                       lpOptions[l].szValue = val;
                   else if (lpOptions[l].dwType & APXCMDOPT_INT)       
  -                    lpOptions[l].dwValue = (DWORD)apxStrToulW(val);
  +                    lpOptions[l].dwValue = (DWORD)apxAtoulW(val);
                   else if (lpOptions[l].dwType & APXCMDOPT_MSZ) {
                       DWORD sp = 0;
                       LPWSTR ov = lpOptions[l].szValue;
  @@ -179,7 +179,6 @@
                       apxStrCharReplaceW(lpOptions[l].szValue + sp, L'#', L'\0');
                       apxStrCharReplaceW(lpOptions[l].szValue + sp, L';', L'\0');
                   }
  -
                   lpOptions[l].dwType |= APXCMDOPT_FOUND;
                   if (add)
                       lpOptions[l].dwType |= APXCMDOPT_ADD;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org