mscoree: Use BOOL type where appropriate

Frédéric Delanoy frederic.delanoy at gmail.com
Thu Oct 24 17:19:06 CDT 2013


---
 dlls/mscoree/assembly.c     | 6 +++---
 dlls/mscoree/metahost.c     | 4 ++--
 dlls/mscoree/mscoree_main.c | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/mscoree/assembly.c b/dlls/mscoree/assembly.c
index 13e7f03..7cfc359 100644
--- a/dlls/mscoree/assembly.c
+++ b/dlls/mscoree/assembly.c
@@ -63,7 +63,7 @@ typedef struct tagCLRTABLE
 
 struct tagASSEMBLY
 {
-    int is_mapped_file;
+    BOOL is_mapped_file;
 
     /* mapped files */
     LPWSTR path;
@@ -213,7 +213,7 @@ HRESULT assembly_create(ASSEMBLY **out, LPCWSTR file)
     if (!assembly)
         return E_OUTOFMEMORY;
 
-    assembly->is_mapped_file = 1;
+    assembly->is_mapped_file = TRUE;
 
     assembly->path = strdupW(file);
     if (!assembly->path)
@@ -267,7 +267,7 @@ HRESULT assembly_from_hmodule(ASSEMBLY **out, HMODULE hmodule)
     if (!assembly)
         return E_OUTOFMEMORY;
 
-    assembly->is_mapped_file = 0;
+    assembly->is_mapped_file = FALSE;
 
     assembly->data = (BYTE*)hmodule;
 
diff --git a/dlls/mscoree/metahost.c b/dlls/mscoree/metahost.c
index fc00522..a171a3a 100644
--- a/dlls/mscoree/metahost.c
+++ b/dlls/mscoree/metahost.c
@@ -724,7 +724,7 @@ static BOOL get_mono_path(LPWSTR path, int abi_version)
     WCHAR base_path[MAX_PATH];
     const char *unix_data_dir;
     WCHAR *dos_data_dir;
-    int build_tree=0;
+    BOOL build_tree = FALSE;
     static WCHAR* (CDECL *wine_get_dos_file_name)(const char*);
 
     /* First try c:\windows\mono */
@@ -740,7 +740,7 @@ static BOOL get_mono_path(LPWSTR path, int abi_version)
     if (!unix_data_dir)
     {
         unix_data_dir = wine_get_build_dir();
-        build_tree = 1;
+        build_tree = TRUE;
     }
 
     if (unix_data_dir)
diff --git a/dlls/mscoree/mscoree_main.c b/dlls/mscoree/mscoree_main.c
index 2ca0ce7..feeab05 100644
--- a/dlls/mscoree/mscoree_main.c
+++ b/dlls/mscoree/mscoree_main.c
@@ -648,7 +648,7 @@ static void parse_msi_version_string(const char *version, int *parts)
 
 static BOOL install_wine_mono(void)
 {
-    BOOL is_wow64=0;
+    BOOL is_wow64 = FALSE;
     HMODULE hmsi;
     UINT (WINAPI *pMsiGetProductInfoA)(LPCSTR,LPCSTR,LPSTR,DWORD*);
     char versionstringbuf[15];
-- 
1.8.4.1




More information about the wine-patches mailing list