mscoree: Use BOOL type where appropriate

Frédéric Delanoy frederic.delanoy at gmail.com
Tue Feb 18 17:41:53 CST 2014


---
 dlls/mscoree/metahost.c        | 4 ++--
 dlls/mscoree/mscoree_private.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/mscoree/metahost.c b/dlls/mscoree/metahost.c
index 6386122..61bd89e 100644
--- a/dlls/mscoree/metahost.c
+++ b/dlls/mscoree/metahost.c
@@ -718,7 +718,7 @@ static void find_runtimes(void)
 
             if (GetFileAttributesW(lib_path) != INVALID_FILE_ATTRIBUTES)
             {
-                runtimes[i].found = 1;
+                runtimes[i].found = TRUE;
 
                 strcpyW(runtimes[i].mono_path, mono_path);
                 strcpyW(runtimes[i].mscorlib_path, lib_path);
@@ -733,7 +733,7 @@ static void find_runtimes(void)
         /* Report all runtimes are available if Mono isn't installed.
          * FIXME: Remove this when Mono is properly packaged. */
         for (i=0; i<NUM_RUNTIMES; i++)
-            runtimes[i].found = 1;
+            runtimes[i].found = TRUE;
     }
 
     runtimes_initialized = TRUE;
diff --git a/dlls/mscoree/mscoree_private.h b/dlls/mscoree/mscoree_private.h
index f76dd78..a451344 100644
--- a/dlls/mscoree/mscoree_private.h
+++ b/dlls/mscoree/mscoree_private.h
@@ -64,7 +64,7 @@ typedef struct CLRRuntimeInfo
     DWORD major;
     DWORD minor;
     DWORD build;
-    int found;
+    BOOL found;
     WCHAR mono_path[MAX_PATH];
     WCHAR mscorlib_path[MAX_PATH];
     struct RuntimeHost *loaded_runtime;
-- 
1.9.0




More information about the wine-patches mailing list