Check for NULL char and not '\' ;)
Modified: trunk/reactos/subsys/system/cmd/misc.c
_____
Modified: trunk/reactos/subsys/system/cmd/misc.c
--- trunk/reactos/subsys/system/cmd/misc.c 2006-01-08 21:26:17 UTC
(rev 20732)
+++ trunk/reactos/subsys/system/cmd/misc.c 2006-01-08 21:26:34 UTC
(rev 20733)
@@ -372,7 +372,7 @@
{
/* Check to make sure if there is no ending "
* we dont run over the null char */
- if(*s != _T('/'))
+ if(*s == _T('\0'))
{
break;
}
Check to see if we are at the end of the string even if there isnt a "
there.
Modified: trunk/reactos/subsys/system/cmd/misc.c
_____
Modified: trunk/reactos/subsys/system/cmd/misc.c
--- trunk/reactos/subsys/system/cmd/misc.c 2006-01-08 21:09:00 UTC
(rev 20730)
+++ trunk/reactos/subsys/system/cmd/misc.c 2006-01-08 21:17:40 UTC
(rev 20731)
@@ -370,6 +370,12 @@
/* adjust string pointer if quoted (") */
if (bQuoted)
{
+ /* Check to make sure if there is no ending "
+ * we dont run over the null char */
+ if(*s != _T('/'))
+ {
+ break;
+ }
++s;
bQuoted = FALSE;
}
Don't close the pipe, we need it for the next client
Modified: trunk/reactos/services/dhcp/pipe.c
_____
Modified: trunk/reactos/services/dhcp/pipe.c
--- trunk/reactos/services/dhcp/pipe.c 2006-01-08 20:08:38 UTC (rev
20726)
+++ trunk/reactos/services/dhcp/pipe.c 2006-01-08 20:12:11 UTC (rev
20727)
@@ -54,7 +54,7 @@
break;
}
}
- CloseHandle( CommPipe );
+ DisconnectNamedPipe( CommPipe );
}
return TRUE;
Small fix for the patch special char patch earlier.
Modified: trunk/reactos/subsys/system/cmd/cmdinput.c
_____
Modified: trunk/reactos/subsys/system/cmd/cmdinput.c
--- trunk/reactos/subsys/system/cmd/cmdinput.c 2006-01-08 19:50:52 UTC
(rev 20724)
+++ trunk/reactos/subsys/system/cmd/cmdinput.c 2006-01-08 20:02:26 UTC
(rev 20725)
@@ -415,6 +415,7 @@
case _T('M'):
case _T('C'):
/* ^M does the same as return */
+ bCharInput = TRUE;
if(!(ir.Event.KeyEvent.dwControlKeyState &
(RIGHT_CTRL_PRESSED|LEFT_CTRL_PRESSED)))
{