Author: ekohl Date: Mon Jul 20 19:47:08 2015 New Revision: 68475
URL: http://svn.reactos.org/svn/reactos?rev=68475&view=rev Log: [DISKPART] Speed up the interpreter a bit. Patch by Lee Schroeder. CORE-9925 #resolve #comment Thank's a lot!
Modified: trunk/reactos/base/system/diskpart/interpreter.c
Modified: trunk/reactos/base/system/diskpart/interpreter.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/diskpart/interp... ============================================================================== --- trunk/reactos/base/system/diskpart/interpreter.c [iso-8859-1] (original) +++ trunk/reactos/base/system/diskpart/interpreter.c [iso-8859-1] Mon Jul 20 19:47:08 2015 @@ -69,17 +69,17 @@ { PCOMMAND cmdptr;
+ /* First, determine if the user wants to exit + or to use a comment */ + if(wcsicmp(argv[0], L"exit") == 0) + return FALSE; + + if(wcsicmp(argv[0], L"rem") == 0) + return TRUE; + /* Scan internal command table */ for (cmdptr = cmds; cmdptr->name; cmdptr++) { - /* First, determine if the user wants to exit - or to use a comment */ - if(wcsicmp(argv[0], L"exit") == 0) - return FALSE; - - if(wcsicmp(argv[0], L"rem") == 0) - return TRUE; - if (wcsicmp(argv[0], cmdptr->name) == 0) return cmdptr->func(argc, argv); }