=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: kernel32: Use BOOL type where appropriate.

Alexandre Julliard julliard at winehq.org
Thu Oct 3 15:18:01 CDT 2013


Module: wine
Branch: master
Commit: baf491b80bf625d821929803a871a892bc216e7f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=baf491b80bf625d821929803a871a892bc216e7f

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Thu Oct  3 00:08:57 2013 +0200

kernel32: Use BOOL type where appropriate.

---

 dlls/kernel32/process.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 6b4d9b4..afbdf72 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -84,7 +84,7 @@ typedef struct
 static DWORD shutdown_flags = 0;
 static DWORD shutdown_priority = 0x280;
 static BOOL is_wow64;
-static const int is_win64 = (sizeof(void *) > sizeof(int));
+static const BOOL is_win64 = (sizeof(void *) > sizeof(int));
 
 HMODULE kernel32_handle = 0;
 SYSTEM_BASIC_INFORMATION system_info = { 0 };
@@ -116,7 +116,7 @@ extern void SHELL_LoadRegistry(void);
 /***********************************************************************
  *           contains_path
  */
-static inline int contains_path( LPCWSTR name )
+static inline BOOL contains_path( LPCWSTR name )
 {
     return ((*name && (name[1] == ':')) || strchrW(name, '/') || strchrW(name, '\\'));
 }
@@ -128,7 +128,7 @@ static inline int contains_path( LPCWSTR name )
  * Check if an environment variable needs to be handled specially when
  * passed through the Unix environment (i.e. prefixed with "WINE").
  */
-static inline int is_special_env_var( const char *var )
+static inline BOOL is_special_env_var( const char *var )
 {
     return (!strncmp( var, "PATH=", sizeof("PATH=")-1 ) ||
             !strncmp( var, "PWD=", sizeof("PWD=")-1 ) ||




More information about the wine-cvs mailing list