mscoree: Use BOOL type where appropriate

Frédéric Delanoy frederic.delanoy at gmail.com
Mon Oct 7 15:49:39 CDT 2013


---
 dlls/mscoree/corruntimehost.c | 6 +++---
 dlls/mscoree/metahost.c       | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dlls/mscoree/corruntimehost.c b/dlls/mscoree/corruntimehost.c
index 76b7d65..14854d1 100644
--- a/dlls/mscoree/corruntimehost.c
+++ b/dlls/mscoree/corruntimehost.c
@@ -60,7 +60,7 @@ static struct list dll_fixups;
 struct dll_fixup
 {
     struct list entry;
-    int done;
+    BOOL done;
     HMODULE dll;
     void *thunk_code; /* pointer into dll_fixup_heap */
     VTableFixup *fixup;
@@ -939,7 +939,7 @@ static void CDECL ReallyFixupVTable(struct dll_fixup *fixup)
             }
         }
 
-        fixup->done = 1;
+        fixup->done = TRUE;
     }
 
     if (info != NULL)
@@ -972,7 +972,7 @@ static void FixupVTableEntry(HMODULE hmodule, VTableFixup *vtable_fixup)
     fixup->thunk_code = HeapAlloc(dll_fixup_heap, 0, sizeof(struct vtable_fixup_thunk) * vtable_fixup->count);
     fixup->fixup = vtable_fixup;
     fixup->vtable = (BYTE*)hmodule + vtable_fixup->rva;
-    fixup->done = 0;
+    fixup->done = FALSE;
 
     if (vtable_fixup->type & COR_VTABLE_32BIT)
     {
diff --git a/dlls/mscoree/metahost.c b/dlls/mscoree/metahost.c
index 519e991..f6558d9 100644
--- a/dlls/mscoree/metahost.c
+++ b/dlls/mscoree/metahost.c
@@ -59,7 +59,7 @@ static struct CLRRuntimeInfo runtimes[NUM_RUNTIMES] = {
     {{&CLRRuntimeInfoVtbl}, net_40_subdir, 4, 0, 30319, 0}
 };
 
-static int runtimes_initialized;
+static BOOL runtimes_initialized = FALSE;
 
 static CRITICAL_SECTION runtime_list_cs;
 static CRITICAL_SECTION_DEBUG runtime_list_cs_debug =
@@ -818,7 +818,7 @@ static void find_runtimes(void)
             runtimes[i].mono_abi_version = -1;
     }
 
-    runtimes_initialized = 1;
+    runtimes_initialized = TRUE;
 
 end:
     LeaveCriticalSection(&runtime_list_cs);
@@ -1335,7 +1335,7 @@ HRESULT get_runtime_info(LPCWSTR exefile, LPCWSTR version, LPCWSTR config_file,
 
     if (config_file)
     {
-        int found=0;
+        BOOL found = FALSE;
         hr = parse_config_file(config_file, &parsed_config);
 
         if (SUCCEEDED(hr))
@@ -1346,7 +1346,7 @@ HRESULT get_runtime_info(LPCWSTR exefile, LPCWSTR version, LPCWSTR config_file,
                 hr = CLRMetaHost_GetRuntime(0, entry->version, &IID_ICLRRuntimeInfo, (void**)result);
                 if (SUCCEEDED(hr))
                 {
-                    found = 1;
+                    found = TRUE;
                     break;
                 }
             }
-- 
1.8.4




More information about the wine-patches mailing list