From 502fc1aef9296f89d5895417958abe854c13c1de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Delanoy?= Date: Mon, 9 Dec 2013 10:34:53 +0100 Subject: [PATCH] ntdll: Use boolean type where appropriate. --- dlls/ntdll/directory.c | 14 +++++++------- dlls/ntdll/ntdll_misc.h | 2 +- dlls/ntdll/server.c | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c index 9e8b8fcbfc2..78b3ea7c35c 100644 --- a/dlls/ntdll/directory.c +++ b/dlls/ntdll/directory.c @@ -2100,15 +2100,15 @@ NTSTATUS WINAPI NtQueryDirectoryFile( HANDLE handle, HANDLE event, * There must be at least MAX_DIR_ENTRY_LEN+2 chars available at pos. */ static NTSTATUS find_file_in_dir( char *unix_name, int pos, const WCHAR *name, int length, - int check_case, int *is_win_dir ) + BOOLEAN check_case, BOOLEAN *is_win_dir ) { WCHAR buffer[MAX_DIR_ENTRY_LEN]; UNICODE_STRING str; - BOOLEAN spaces; + BOOLEAN spaces, is_name_8_dot_3; DIR *dir; struct dirent *de; struct stat st; - int ret, used_default, is_name_8_dot_3; + int ret, used_default; /* try a shortcut for this directory */ @@ -2374,7 +2374,7 @@ static void init_redirects(void) * * Check if path matches a redirect name. If yes, return matched length. */ -static int match_redirect( const WCHAR *path, int len, const WCHAR *redir, int check_case ) +static int match_redirect( const WCHAR *path, int len, const WCHAR *redir, BOOLEAN check_case ) { int i = 0; @@ -2409,7 +2409,7 @@ static int match_redirect( const WCHAR *path, int len, const WCHAR *redir, int c * * Retrieve the Unix path corresponding to a redirected path if any. */ -static int get_redirect_path( char *unix_name, int pos, const WCHAR *name, int length, int check_case ) +static int get_redirect_path( char *unix_name, int pos, const WCHAR *name, int length, BOOLEAN check_case ) { unsigned int i; int len; @@ -2433,7 +2433,7 @@ static int get_redirect_path( char *unix_name, int pos, const WCHAR *name, int l static const unsigned int nb_redirects = 0; -static int get_redirect_path( char *unix_name, int pos, const WCHAR *name, int length, int check_case ) +static int get_redirect_path( char *unix_name, int pos, const WCHAR *name, int length, BOOLEAN check_case ) { return 0; } @@ -2745,7 +2745,7 @@ static NTSTATUS lookup_unix_name( const WCHAR *name, int name_len, char **buffer while (name_len) { const WCHAR *end, *next; - int is_win_dir = 0; + BOOLEAN is_win_dir = FALSE; end = name; while (end < name + name_len && !IS_SEPARATOR(*end)) end++; diff --git a/dlls/ntdll/ntdll_misc.h b/dlls/ntdll/ntdll_misc.h index a13c55b8d9f..a45e6b07b63 100644 --- a/dlls/ntdll/ntdll_misc.h +++ b/dlls/ntdll/ntdll_misc.h @@ -79,7 +79,7 @@ extern void heap_set_debug_flags( HANDLE handle ) DECLSPEC_HIDDEN; /* server support */ extern timeout_t server_start_time DECLSPEC_HIDDEN; extern unsigned int server_cpus DECLSPEC_HIDDEN; -extern int is_wow64 DECLSPEC_HIDDEN; +extern BOOL is_wow64 DECLSPEC_HIDDEN; extern void server_init_process(void) DECLSPEC_HIDDEN; extern NTSTATUS server_init_process_done(void) DECLSPEC_HIDDEN; extern size_t server_init_thread( void *entry_point ) DECLSPEC_HIDDEN; diff --git a/dlls/ntdll/server.c b/dlls/ntdll/server.c index 59e8ea598b2..f3c6b38e91f 100644 --- a/dlls/ntdll/server.c +++ b/dlls/ntdll/server.c @@ -107,7 +107,7 @@ static const enum cpu_type client_cpu = CPU_ARM64; #endif unsigned int server_cpus = 0; -int is_wow64 = FALSE; +BOOL is_wow64 = FALSE; timeout_t server_start_time = 0; /* time of server startup */