=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: oleaut32/tests: Use boolean return values in boolean functions.
Alexandre Julliard
julliard at winehq.org
Thu Jan 30 13:25:27 CST 2014
Module: wine
Branch: master
Commit: 16111fa63c2aa67488bcc5421b52b86cee32fcb9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=16111fa63c2aa67488bcc5421b52b86cee32fcb9
Author: André Hentschel <nerv at dawncrow.de>
Date: Tue Jan 28 00:09:34 2014 +0100
oleaut32/tests: Use boolean return values in boolean functions.
---
dlls/oleaut32/tests/tmarshal.c | 5 ++---
dlls/oleaut32/tests/vartest.c | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/dlls/oleaut32/tests/tmarshal.c b/dlls/oleaut32/tests/tmarshal.c
index 5753871..f9d9db9 100644
--- a/dlls/oleaut32/tests/tmarshal.c
+++ b/dlls/oleaut32/tests/tmarshal.c
@@ -721,9 +721,8 @@ static BOOL mystruct_uint_ordered(MYSTRUCT *mystruct)
int i;
for (i = 0; i < sizeof(mystruct->uarr)/sizeof(mystruct->uarr[0]); i++)
if (mystruct->uarr[i] != i)
- return 0;
-
- return 1;
+ return FALSE;
+ return TRUE;
}
static HRESULT WINAPI Widget_StructArgs(
diff --git a/dlls/oleaut32/tests/vartest.c b/dlls/oleaut32/tests/vartest.c
index bc8c4ba..9ca541f 100644
--- a/dlls/oleaut32/tests/vartest.c
+++ b/dlls/oleaut32/tests/vartest.c
@@ -290,7 +290,7 @@ static BOOL is_expected_variant( const VARIANT *result, const VARIANT *expected
return !memcmp( &V_DECIMAL(result), &V_DECIMAL(expected), sizeof(DECIMAL) );
default:
ok(0, "unhandled variant type %s\n",vtstr(V_VT(expected)));
- return 0;
+ return FALSE;
}
}
More information about the wine-cvs
mailing list