cmd: verify_mode has BOOL type instead of int.

This commit is contained in:
Frédéric Delanoy 2011-09-16 08:44:07 +02:00 committed by Alexandre Julliard
parent b3561bf82e
commit c4db72f50e
2 changed files with 6 additions and 4 deletions

View File

@ -50,12 +50,14 @@ struct env_stack *pushd_directories;
extern HINSTANCE hinst; extern HINSTANCE hinst;
extern WCHAR inbuilt[][10]; extern WCHAR inbuilt[][10];
extern int verify_mode, defaultColor; extern int defaultColor;
extern BOOL echo_mode; extern BOOL echo_mode;
extern WCHAR quals[MAX_PATH], param1[MAX_PATH], param2[MAX_PATH]; extern WCHAR quals[MAX_PATH], param1[MAX_PATH], param2[MAX_PATH];
extern BATCH_CONTEXT *context; extern BATCH_CONTEXT *context;
extern DWORD errorlevel; extern DWORD errorlevel;
static BOOL verify_mode = FALSE;
static const WCHAR dotW[] = {'.','\0'}; static const WCHAR dotW[] = {'.','\0'};
static const WCHAR dotdotW[] = {'.','.','\0'}; static const WCHAR dotdotW[] = {'.','.','\0'};
static const WCHAR slashW[] = {'\\','\0'}; static const WCHAR slashW[] = {'\\','\0'};
@ -2617,11 +2619,11 @@ void WCMD_verify (const WCHAR *command) {
return; return;
} }
if (lstrcmpiW(command, onW) == 0) { if (lstrcmpiW(command, onW) == 0) {
verify_mode = 1; verify_mode = TRUE;
return; return;
} }
else if (lstrcmpiW(command, offW) == 0) { else if (lstrcmpiW(command, offW) == 0) {
verify_mode = 0; verify_mode = FALSE;
return; return;
} }
else WCMD_output (WCMD_LoadMessage(WCMD_VERIFYERR)); else WCMD_output (WCMD_LoadMessage(WCMD_VERIFYERR));

View File

@ -86,7 +86,7 @@ const WCHAR externals[NUM_EXTERNALS][10] = {
HINSTANCE hinst; HINSTANCE hinst;
DWORD errorlevel; DWORD errorlevel;
int verify_mode = 0, defaultColor = 7; int defaultColor = 7;
BOOL echo_mode = TRUE; BOOL echo_mode = TRUE;
static int opt_c, opt_k, opt_s; static int opt_c, opt_k, opt_s;
const WCHAR newline[] = {'\r','\n','\0'}; const WCHAR newline[] = {'\r','\n','\0'};