oleaut32/tests: Use bool instead of int when appropriate
André Hentschel
nerv at dawncrow.de
Wed Jun 26 16:51:29 CDT 2013
---
dlls/oleaut32/tests/varformat.c | 2 +-
dlls/oleaut32/tests/vartest.c | 2 +-
dlls/oleaut32/tests/vartype.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/oleaut32/tests/varformat.c b/dlls/oleaut32/tests/varformat.c
index a47c994..8370d1d 100644
--- a/dlls/oleaut32/tests/varformat.c
+++ b/dlls/oleaut32/tests/varformat.c
@@ -45,7 +45,7 @@ static HRESULT (WINAPI *pVarFormat)(LPVARIANT,LPOLESTR,int,int,ULONG,BSTR*);
static HRESULT (WINAPI *pVarWeekdayName)(int,int,int,ULONG,BSTR*);
/* Has I8/UI8 data type? */
-static int has_i8;
+static BOOL has_i8;
/* Get a conversion function ptr, return if function not available */
#define CHECKPTR(func) p##func = (void*)GetProcAddress(hOleaut32, #func); \
diff --git a/dlls/oleaut32/tests/vartest.c b/dlls/oleaut32/tests/vartest.c
index e516341..1ee3c4f 100644
--- a/dlls/oleaut32/tests/vartest.c
+++ b/dlls/oleaut32/tests/vartest.c
@@ -58,7 +58,7 @@ static WCHAR sz12_true[32];
if (!p##func) { win_skip("function " # func " not available, not testing it\n"); return; }
/* Has I8/UI8 data type? */
-static int has_i8 = 0;
+static BOOL has_i8;
/* When comparing floating point values we cannot expect an exact match
* because the rounding errors depend on the exact algorithm.
diff --git a/dlls/oleaut32/tests/vartype.c b/dlls/oleaut32/tests/vartype.c
index 893be02..4c823c6 100644
--- a/dlls/oleaut32/tests/vartype.c
+++ b/dlls/oleaut32/tests/vartype.c
@@ -51,9 +51,9 @@ static HMODULE hOleaut32;
win_skip("function " # func " not available, not testing it\n"); return; }
/* Has I8/UI8 data type? */
-static int has_i8;
+static BOOL has_i8;
/* Has proper locale conversions? */
-static int has_locales;
+static BOOL has_locales;
/* Is vt a type unavailable to ancient versions? */
#define IS_MODERN_VTYPE(vt) (vt==VT_VARIANT||vt==VT_DECIMAL|| \
--
1.8.1.2
More information about the wine-patches
mailing list