From 75b8f2bb9fac2a83d186a42474b902b919c703a7 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Mon, 20 Jul 2015 19:47:08 +0000 Subject: [PATCH] [DISKPART] Speed up the interpreter a bit. Patch by Lee Schroeder. CORE-9925 #resolve #comment Thank's a lot! svn path=/trunk/; revision=68475 --- reactos/base/system/diskpart/interpreter.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/reactos/base/system/diskpart/interpreter.c b/reactos/base/system/diskpart/interpreter.c index 40710c041eb..beaa62fc3e5 100644 --- a/reactos/base/system/diskpart/interpreter.c +++ b/reactos/base/system/diskpart/interpreter.c @@ -69,17 +69,17 @@ InterpretCmd(int argc, LPWSTR *argv) { 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); }