André Hentschel : xmllite/tests: Clarify ok() condition (PVS-Studio).
Module: wine Branch: master Commit: b91084a992fdf1554b5ed68654705677c9a31681 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b91084a992fdf1554b5ed68654... Author: André Hentschel <nerv(a)dawncrow.de> Date: Mon Nov 10 21:06:31 2014 +0100 xmllite/tests: Clarify ok() condition (PVS-Studio). --- dlls/xmllite/tests/reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/xmllite/tests/reader.c b/dlls/xmllite/tests/reader.c index 0108027..f7c576f 100644 --- a/dlls/xmllite/tests/reader.c +++ b/dlls/xmllite/tests/reader.c @@ -758,7 +758,7 @@ static void test_read_xmldeclaration(void) ok(!lstrcmpW(name_val[i].val, val), "expected %s, got %s\n", wine_dbgstr_w(name_val[i].val), wine_dbgstr_w(val)); hr = IXmlReader_MoveToNextAttribute(reader); - ok(hr == (i < count - 1) ? S_OK : S_FALSE, "got %08x\n", hr); + ok(hr == ((i < count - 1) ? S_OK : S_FALSE), "got %08x\n", hr); } hr = IXmlReader_GetDepth(reader, &count);
participants (1)
-
Alexandre Julliard