Author: cfinck
Date: Sat Sep 8 13:55:42 2007
New Revision: 28937
URL:
http://svn.reactos.org/svn/reactos?rev=28937&view=rev
Log:
Accept the parameters case-insensitive in shutdown as well
Modified:
trunk/reactos/base/applications/shutdown/shutdown.c
Modified: trunk/reactos/base/applications/shutdown/shutdown.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
==============================================================================
--- trunk/reactos/base/applications/shutdown/shutdown.c (original)
+++ trunk/reactos/base/applications/shutdown/shutdown.c Sat Sep 8 13:55:42 2007
@@ -55,11 +55,25 @@
if (argv[i][0] == '-' || argv[i][0] == '/')
{
switch(argv[i][1]) {
- case '?': PrintUsage(); exit(0);
- case 'f': opts.force = TRUE; break;
- case 'l': opts.logoff = TRUE; break;
- case 'r': opts.restart = TRUE; break;
- case 's': opts.shutdown = TRUE; break;
+ case '?':
+ PrintUsage();
+ exit(0);
+ case 'f':
+ case 'F':
+ opts.force = TRUE;
+ break;
+ case 'l':
+ case 'L':
+ opts.logoff = TRUE;
+ break;
+ case 'r':
+ case 'R':
+ opts.restart = TRUE;
+ break;
+ case 's':
+ case 'S':
+ opts.shutdown = TRUE;
+ break;
default:
// Unknown arguments will exit program.
PrintUsage();